mirror of
https://github.com/torvalds/linux.git
synced 2026-06-03 12:03:54 +02:00
pinctrl: baytrail: Use BIT() in BYT_PULL_ASSIGN_* definitions
The bias setting (pull-up or pull-down) are bit fields and we never enable them both, hence use BIT() macro to define them. Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
This commit is contained in:
parent
b9e1843447
commit
9d71208632
|
|
@ -52,10 +52,9 @@
|
|||
#define BYT_PULL_STR_10K (1 << BYT_PULL_STR_SHIFT)
|
||||
#define BYT_PULL_STR_20K (2 << BYT_PULL_STR_SHIFT)
|
||||
#define BYT_PULL_STR_40K (3 << BYT_PULL_STR_SHIFT)
|
||||
#define BYT_PULL_ASSIGN_SHIFT 7
|
||||
#define BYT_PULL_ASSIGN_MASK GENMASK(8, 7)
|
||||
#define BYT_PULL_ASSIGN_UP (1 << BYT_PULL_ASSIGN_SHIFT)
|
||||
#define BYT_PULL_ASSIGN_DOWN (2 << BYT_PULL_ASSIGN_SHIFT)
|
||||
#define BYT_PULL_ASSIGN_DOWN BIT(8)
|
||||
#define BYT_PULL_ASSIGN_UP BIT(7)
|
||||
#define BYT_PIN_MUX GENMASK(2, 0)
|
||||
|
||||
/* BYT_VAL_REG register bits */
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user