iio: humidity: hts221: move common code in hts221_core
authorLorenzo Bianconi <lorenzo.bianconi@redhat.com>
Fri, 29 Dec 2017 23:33:04 +0000 (00:33 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 8 Jan 2018 15:03:43 +0000 (16:03 +0100)
commite1ca114100b2b1409193eacc83fd12992eb4be23
tree5a4ed604ca0f0d4c21d5462a3000362b42a61bdb
parent2e419aec3b86aa76a34cb30ec4865060a6013366
iio: humidity: hts221: move common code in hts221_core

Move duplicated i2c/spi probe code in hts221_probe()

Signed-off-by: Lorenzo Bianconi <lorenzo.bianconi@redhat.com>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/iio/humidity/hts221.h
drivers/iio/humidity/hts221_core.c
drivers/iio/humidity/hts221_i2c.c
drivers/iio/humidity/hts221_spi.c