OSDN Git Service

iio: st_sensors: get platform data from device tree
authorLinus Walleij <linus.walleij@linaro.org>
Mon, 7 Jul 2014 09:47:00 +0000 (10:47 +0100)
committerJonathan Cameron <jic23@kernel.org>
Mon, 7 Jul 2014 12:11:28 +0000 (13:11 +0100)
commit3ce85cc4fbb71739f98806b9c9d63950a60cd8ae
tree96e7c0234115285149f1976c79fa370e93c68eac
parente4f959390178987f3ad73ff89c6918e564172359
iio: st_sensors: get platform data from device tree

Currently the STMicroelectronics sensors only support one single
platform data item: configuration of the DRDY (data ready) pin
for a particular design. Augment the core to prioritize and take
this information from the device tree if the parent device has an
assigned device node, else fall back to passed in platform data
(usually the default data).

Cc: Lee Jones <lee.jones@linaro.org>
Cc: Denis CIOCCA <denis.ciocca@st.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
drivers/iio/common/st_sensors/st_sensors_core.c