platform: cznic: use ffs() instead of __bf_shf()
authorArnd Bergmann <arnd@arndb.de>
Mon, 24 Mar 2025 16:11:11 +0000 (17:11 +0100)
committerArnd Bergmann <arnd@arndb.de>
Fri, 4 Apr 2025 14:02:59 +0000 (16:02 +0200)
commitb24e88b42d68d388f97ca71e11e50cb3e78406ec
tree8771fb36b8970c657ba852456ee3d29b39ff0583
parent642989287350fa4964c37df0f3769094072421c3
platform: cznic: use ffs() instead of __bf_shf()

__bf_shf() on a 64-bit variable causes a link failure during
compile-testing:

drivers-platform-cznic-turris-omnia-mcu-gpio.c:(.text):undefined-reference-to-__ffsdi2

Open-code this using ffs()-1, which has the same result but avoids
the library call.

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
drivers/platform/cznic/turris-omnia-mcu-gpio.c