iio: accel: mma9553: use specialized event code macros
authorDavid Lechner <dlechner@baylibre.com>
Fri, 1 Nov 2024 22:17:09 +0000 (17:17 -0500)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Sun, 3 Nov 2024 20:33:45 +0000 (20:33 +0000)
commitdff100b0f3ac0f666902e65b2b5dd2580a6146cb
tree6f619682f1b5a14991ea8038c3d748640960c233
parentc4d4f112bb5869dc356e513ff3876c10ed6f86c7
iio: accel: mma9553: use specialized event code macros

Simplify the code by using IIO_UNMOD_EVENT_CODE and IIO_MOD_EVENT_CODE
instead of IIO_EVENT_CODE.

Signed-off-by: David Lechner <dlechner@baylibre.com>
Link: https://patch.msgid.link/20241101-iio-fix-event-macro-use-v1-2-0000c5d09f6d@baylibre.com
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/accel/mma9553.c