iio:accel:mma7455_core: Move exports into IIO_MMA7455 namespace
authorJonathan Cameron <Jonathan.Cameron@huawei.com>
Sun, 16 Jan 2022 18:05:24 +0000 (18:05 +0000)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Fri, 18 Feb 2022 11:36:53 +0000 (11:36 +0000)
commiteca7b25bee064575eb80a025cdee66eb2d65174d
tree5ba2f51a29c2e8b6f05222970938c7ccde710442
parent4205a215803f7d9a04fcd642bca22de78ea80156
iio:accel:mma7455_core: Move exports into IIO_MMA7455 namespace

In order to avoid unnecessary pollution of the global symbol namespace
move the core mma7455 functions into an mma7455 specific namespace and
import that into the two bus modules.

For more information see https://lwn.net/Articles/760045/

Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Cc: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Link: https://lore.kernel.org/r/20220116180535.2367780-3-jic23@kernel.org
drivers/iio/accel/mma7455_core.c
drivers/iio/accel/mma7455_i2c.c
drivers/iio/accel/mma7455_spi.c