tty: serial: atmel: Use FIELD_PREP/FIELD_GET
authorSergiu Moga <sergiu.moga@microchip.com>
Thu, 22 Sep 2022 11:33:47 +0000 (14:33 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 22 Sep 2022 14:32:25 +0000 (16:32 +0200)
commitf73db49650a1841b038fd20329e6bfbbdcad45ae
treef4656847ab8de829488ec00e9badc20640aa4f24
parent5e3ce1f261296bfe4bb59a98c82f4959d214a4f7
tty: serial: atmel: Use FIELD_PREP/FIELD_GET

Convert all open-coded instances of bitfields retrieval/setting
to FIELD_PREP/FIELD_GET where possible.

Signed-off-by: Sergiu Moga <sergiu.moga@microchip.com>
Reviewed-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
Link: https://lore.kernel.org/r/20220922113347.144383-10-sergiu.moga@microchip.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/atmel_serial.h