diff options
| author | 2021-01-22 14:21:32 +0200 | |
|---|---|---|
| committer | 2021-01-26 10:02:28 +0100 | |
| commit | 8eb2f88c6084b9dc69147abb3d24dafe36ecda8a (patch) | |
| tree | 041be5b934569f529c8e75f6838123756a0d08e5 | |
| parent | drivers: soc: atmel: add null entry at the end of at91_soc_allowed_list[] (diff) | |
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 |
