can: etas_es58x: use BITS_PER_TYPE() instead of manual calculation
authorVincent Mailhol <mailhol.vincent@wanadoo.fr>
Sat, 12 Feb 2022 13:07:37 +0000 (22:07 +0900)
committerMarc Kleine-Budde <mkl@pengutronix.de>
Thu, 24 Feb 2022 07:26:04 +0000 (08:26 +0100)
commit2ae9856d70b64c3e7eccdb865e7ae77380699bd1
treeb2ea97fc4f795ed9760d5e3e6a7415bdbe2566f1
parent2206fcbc1090bdcf7058d8c9bbc1a147c7359cfa
can: etas_es58x: use BITS_PER_TYPE() instead of manual calculation

The input to the GENMASK() macro was calculated by hand. Replaced it
with a dedicated macro: BITS_PER_TYPE() which does the exact same job.

Link: https://lore.kernel.org/all/20220212130737.3008-1-mailhol.vincent@wanadoo.fr
Signed-off-by: Vincent Mailhol <mailhol.vincent@wanadoo.fr>
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
drivers/net/can/usb/etas_es58x/es58x_fd.c