thermal: sun8i: Use bitmap API instead of open code
authorYangtao Li <frank@allwinnertech.com>
Mon, 9 Nov 2020 11:46:24 +0000 (19:46 +0800)
committerDaniel Lezcano <daniel.lezcano@linaro.org>
Thu, 12 Nov 2020 10:05:12 +0000 (11:05 +0100)
commite01aac535353e013f9a5c9675232458906b895da
tree35cc167d71b7f60c9dbf612d6e5a33a594f5e926
parentef63b043ac8645d2540d7b50dd3e09c53db3d504
thermal: sun8i: Use bitmap API instead of open code

The bitmap_* API is the standard way to access data in the bitfield.
So convert irq_ack to return an unsigned long, and make things to use
bitmap API.

Signed-off-by: Yangtao Li <frank@allwinnertech.com>
Acked-by: Maxime Ripard <mripard@kernel.org>
Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
Link: https://lore.kernel.org/r/20201109114624.23035-1-frank@allwinnertech.com
drivers/thermal/sun8i_thermal.c