]> 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)
commite7e189807d73d7ceff9bb52282b62b03510a4ac8
treeb8d1faa40a541ae7ac7a39642139b61b006aac44
parent9ce543325d6c2bf34a5b93613daeaa8b902e13fb
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