12345678910111213141516171819202122232425 |
- From 8d858d9c57a0210ca1ce9e5ba76fab8bdb4d7b39 Mon Sep 17 00:00:00 2001
- From: Claudiu Beznea <[email protected]>
- Date: Fri, 22 Jan 2021 14:21:32 +0200
- Subject: [PATCH 137/247] drivers: soc: atmel: use GENMASK
- Use GENMASK() to define CIDR match mask.
- Signed-off-by: Claudiu Beznea <[email protected]>
- Signed-off-by: Nicolas Ferre <[email protected]>
- Link: https://lore.kernel.org/r/[email protected]
- ---
- drivers/soc/atmel/soc.c | 2 +-
- 1 file changed, 1 insertion(+), 1 deletion(-)
- --- a/drivers/soc/atmel/soc.c
- +++ b/drivers/soc/atmel/soc.c
- @@ -27,7 +27,7 @@
- #define AT91_CHIPID_EXID 0x04
- #define AT91_CIDR_VERSION(x) ((x) & 0x1f)
- #define AT91_CIDR_EXT BIT(31)
- -#define AT91_CIDR_MATCH_MASK 0x7fffffe0
- +#define AT91_CIDR_MATCH_MASK GENMASK(30, 5)
-
- static const struct at91_soc __initconst socs[] = {
- #ifdef CONFIG_SOC_AT91RM9200
|