diff options
author | Claudiu Beznea <claudiu.beznea@microchip.com> | 2021-01-22 15:21:32 +0300 |
---|---|---|
committer | Nicolas Ferre <nicolas.ferre@microchip.com> | 2021-01-26 12:02:28 +0300 |
commit | 8eb2f88c6084b9dc69147abb3d24dafe36ecda8a (patch) | |
tree | 041be5b934569f529c8e75f6838123756a0d08e5 | |
parent | 975435132ecfef8de2118668c9f4f95086a0aae5 (diff) | |
download | linux-8eb2f88c6084b9dc69147abb3d24dafe36ecda8a.tar.xz |
drivers: soc: atmel: use GENMASK
Use GENMASK() to define CIDR match mask.
Signed-off-by: Claudiu Beznea <claudiu.beznea@microchip.com>
Signed-off-by: Nicolas Ferre <nicolas.ferre@microchip.com>
Link: https://lore.kernel.org/r/1611318097-8970-3-git-send-email-claudiu.beznea@microchip.com
-rw-r--r-- | drivers/soc/atmel/soc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/soc/atmel/soc.c b/drivers/soc/atmel/soc.c index 698d21f50516..c3f920ee5c6f 100644 --- 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 |