iio: accel: bmc150: Move struct bmc150_accel_data definition to bmc150-accel.h
authorHans de Goede <hdegoede@redhat.com>
Sun, 23 May 2021 17:00:59 +0000 (19:00 +0200)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Wed, 9 Jun 2021 19:52:17 +0000 (20:52 +0100)
commitba8bd0b33b7bd4f250ff538dce67292ee2db1434
tree2101d4d7d64bed80976609a56ebbc217b5ab8409
parent3aac11a7c2d1c6b165945893bdee43ea359d3e4f
iio: accel: bmc150: Move struct bmc150_accel_data definition to bmc150-accel.h

Further patches to bmc150-accel-i2c.c need to store some extra info
(on top of the second_dev pointer) in the bmc150_accel_data struct,
rather then adding yet more accessor functions for this lets just
move the struct bmc150_accel_data definition to bmc150-accel.h.

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Reviewed-by: Andy Shevchenko <andy.shevchenko@gmail.com>
Link: https://lore.kernel.org/r/20210523170103.176958-6-hdegoede@redhat.com
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/accel/bmc150-accel-core.c
drivers/iio/accel/bmc150-accel.h