Re: [PATCH 12/12] iio: accel: kionix-kx022a: Fix IPOL macro name
From: Matti Vaittinen
Date: Fri Aug 14 2026 - 03:45:54 EST
Thanks for all the reviews Mehdi. Much appreciated!
On 12/08/2026 14:53, Mehdi Djait wrote:
Hi Matti,
Thank you for the patch!
On Mon, Aug 10, 2026 at 10:55:25AM +0300, Matti Vaittinen wrote:
From: Matti Vaittinen <mazziesaccount@xxxxxxxxx>
The "interrupt polarity high" -macro for KX022A variant is defined as:
-macro ?
Yes, the "interrupt polarity high"-macro ;) I should probably have used the proper name of the macro here ^_^;
defined as what ?
as "KX022A_MASK_IPOL1". Seems like my brains moved to the next topic before hands finished writing this one :| Thanks for pointing it out :)
Yours,However, the KX022A_MASK_IPOL1 is not defined anywhere, so actually
using the KX022A_IPOL_HIGH would produce a compile error.
Fix the define by using correct mask.
Reviewed-by: Mehdi Djait <mehdi.djait@xxxxxxxxxxxxxxx>
-- Matti
--
Matti Vaittinen
Linux kernel developer at ROHM Semiconductors
Oulu Finland
~~ When things go utterly wrong vim users can always type :help! ~~