]> git.baikalelectronics.ru Git - kernel.git/commit
leds: pca955x: Switch to i2c probe_new
authorEddie James <eajames@linux.ibm.com>
Fri, 16 Jul 2021 22:03:31 +0000 (17:03 -0500)
committerPavel Machek <pavel@ucw.cz>
Fri, 20 Aug 2021 09:00:08 +0000 (11:00 +0200)
commitcad933cb81eeee59482931d571f62e57a99a597d
tree718bfa7f03d38be491bca4ff6fd1b2106338c9ce
parent4242db89e056755fade5e4938f481b66e33cb2f6
leds: pca955x: Switch to i2c probe_new

The deprecated i2c probe functionality doesn't work with OF
compatible strings, as it only checks for the i2c device id. Switch
to the new way of probing and grab the match data to select the
chip type.

Signed-off-by: Eddie James <eajames@linux.ibm.com>
Signed-off-by: Pavel Machek <pavel@ucw.cz>
drivers/leds/leds-pca955x.c