iio: mma8452: refactor for seperating chip specific data
authorMartin Kepplinger <martink@posteo.de>
Tue, 1 Sep 2015 11:45:08 +0000 (13:45 +0200)
committerJonathan Cameron <jic23@kernel.org>
Wed, 23 Sep 2015 19:23:20 +0000 (20:23 +0100)
commitc3cdd6e48e35b7a02f28e301ef30a87ff3cd6527
tree9f88041bf95267e90982cace9863f705e307150f
parentafc7da6e486c04244766da9fe2574d972125a602
iio: mma8452: refactor for seperating chip specific data

This adds a struct mma_chip_info to hold data that will remain specific to
the chip in use. It is provided during probe() and linked in
struct of_device_id.

Also this suggests that the driver is called "mma8452" and now handles the
MMA8452Q device, but is not limited to it.

Signed-off-by: Martin Kepplinger <martin.kepplinger@theobroma-systems.com>
Signed-off-by: Christoph Muellner <christoph.muellner@theobroma-systems.com>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
drivers/iio/accel/mma8452.c