]> git.baikalelectronics.ru Git - kernel.git/commit
i2c: Provide a temporary .probe_new() call-back type
authorLee Jones <lee.jones@linaro.org>
Mon, 7 Nov 2016 12:47:41 +0000 (12:47 +0000)
committerWolfram Sang <wsa@the-dreams.de>
Thu, 17 Nov 2016 15:10:23 +0000 (16:10 +0100)
commit4254dc15b469be6a0a263ad394e87b7bc334efce
tree04583b1307471c580849c19d339440c2dc2e8479
parent118d59c41fbf68f428a5bbb26744c8755528bddb
i2c: Provide a temporary .probe_new() call-back type

This will aid the seamless removal of the current probe()'s, more
commonly unused than used second parameter.  Most I2C drivers can
simply switch over to the new interface, others which have DT
support can use its own matching instead and others can call
i2c_match_id() themselves.  This brings I2C's device probe method
into line with other similar interfaces in the kernel and prevents
the requirement to pass an i2c_device_id table.

Suggested-by: Grant Likely <grant.likely@linaro.org>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
[Kieran: fix rebase conflicts and adapt for dev_pm_domain_{attach,detach}]
Tested-by: Kieran Bingham <kieran@bingham.xyz>
Reviewed-by: Javier Martinez Canillas <javier@osg.samsung.com>
Tested-by: Javier Martinez Canillas <javier@osg.samsung.com>
Signed-off-by: Kieran Bingham <kieran@bingham.xyz>
Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
drivers/i2c/i2c-core.c
include/linux/i2c.h