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)
commit58f643669e872b9293603bd4ae19df796cb4b78a
treeb8d1faa40a541ae7ac7a39642139b61b006aac44
parentf40531d1e7848cf49f323f91a653d16caac27431
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