]> git.baikalelectronics.ru Git - kernel.git/commit
staging: iio: isl29028: remove chip test and defaults from isl29028_chip_init()
authorBrian Masney <masneyb@onstation.org>
Sun, 4 Dec 2016 02:19:27 +0000 (21:19 -0500)
committerJonathan Cameron <jic23@kernel.org>
Sun, 4 Dec 2016 11:23:00 +0000 (11:23 +0000)
commit737e5d6856663c26c80d61ba3b3804e7a13a70fb
treeb8d1faa40a541ae7ac7a39642139b61b006aac44
parent05f15608924867d69e35cc4e94b9a3d840cccf43
staging: iio: isl29028: remove chip test and defaults from isl29028_chip_init()

isl29028_chip_init() contains the device driver defaults and
two I2C calls that detect the presence of the chip. This patch
moves these into isl29028_probe() so that this function can
be used by the power management runtinme in a followup patch. This
patch also renames isl29028_chip_init() to
isl29028_chip_init_and_power_on().

Signed-off-by: Brian Masney <masneyb@onstation.org>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
drivers/staging/iio/light/isl29028.c