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
This commit is contained in:
parent
975435132e
commit
8eb2f88c60
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user