Messages in this thread | | | Date | Fri, 13 Jan 2017 15:11:12 +0200 | From | Krzysztof Kozlowski <> | Subject | Re: [PATCH 3/4] mfd: max77686: Use the struct i2c_driver .probe_new instead of .probe |
| |
On Thu, Jan 12, 2017 at 10:47:36AM -0300, Javier Martinez Canillas wrote: > If a driver is only used in DT platforms, there's no need to get the > i2c_device_id as an argument of the probe function. Since this data > can be get from the matching of_device_id. > > There's a temporary .probe_new field in struct i2c_driver that can be > used as probe callback for the case when i2c_device_id won't be used. > > Signed-off-by: Javier Martinez Canillas <javier@osg.samsung.com> > --- > > drivers/mfd/max77686.c | 5 ++--- > 1 file changed, 2 insertions(+), 3 deletions(-)
Reviewed-by: Krzysztof Kozlowski <krzk@kernel.org> Tested-by: Krzysztof Kozlowski <krzk@kernel.org>
Best regards, Krzysztof
| |