lkml.org 
[lkml]   [2023]   [Nov]   [2]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH v2] opp: ti: Use device_get_match_data()
On 01-11-23, 09:45, Rob Herring wrote:
> Use preferred device_get_match_data() instead of of_match_device() to
> get the driver match data. With this, adjust the includes to explicitly
> include the correct headers.
>
> As this driver only does DT based matching, of_match_device() will never
> return NULL if we've gotten to probe(). Therefore, the NULL check and
> error return for it can be dropped.
>
> Signed-off-by: Rob Herring <robh@kernel.org>
> ---
> v2:
> - Add missing commit msg
> ---
> drivers/opp/ti-opp-supply.c | 13 +++----------
> 1 file changed, 3 insertions(+), 10 deletions(-)

Applied. Thanks.

--
viresh

\
 
 \ /
  Last update: 2023-11-02 06:52    [W:0.026 / U:0.428 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site