[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <9f3c9f9a-6bb4-19ba-65ad-53f7edd2af20@axentia.se>
Date: Sat, 15 Sep 2018 13:35:06 +0200
From: Peter Rosin <peda@...ntia.se>
To: YueHaibing <yuehaibing@...wei.com>, jic23@...nel.org,
knaack.h@....de, lars@...afoo.de, pmeerw@...erw.net
Cc: linux-kernel@...r.kernel.org, linux-iio@...r.kernel.org
Subject: Re: [PATCH -next] iio: potentiometer: mcp4018: merge calls to
of_match_device and of_device_get_match_data
On 2018-09-15 12:52, YueHaibing wrote:
> Drop call to of_match_device, which is subsumed by the subsequent
> call to of_device_get_match_data. The code becomes simpler, and a
> temporary variable can be dropped.
>
> Found by coccinelle.
>
> Signed-off-by: YueHaibing <yuehaibing@...wei.com>
Acked-by: Peter Rosin <peda@...ntia.se>
Cheers,
Peter
Powered by blists - more mailing lists