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)
commit239f32b4f161c1584cd4b386d6ab8766432a6ede
tree718bfa7f03d38be491bca4ff6fd1b2106338c9ce
parent7c4815929276b2e223eb6f2e49afe5071d4294a5
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