pinctrl: baytrail: Use fallthrough pseudo-keyword
Subsystems (3)
PATCH 1/1 pinctrl: baytrail: Use fallthrough pseudo-keyword
Replace the existing /* fall through */ comments and its variants with the new pseudo-keyword macro fallthrough[1].
Signed-off-by Gustavo A. R. Silva <[email protected]>
--- drivers/pinctrl/intel/pinctrl-baytrail.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/pinctrl/intel/pinctrl-baytrail.c +2 -2
@@ -1372,13 +1372,13 @@ static void byt_irq_unmask(struct irq_data *d)switch (irqd_get_trigger_type (d)) {case IRQ_TYPE_LEVEL_HIGH : value |=BYT_TRIG_LVL ; -/* fall through */ + fallthrough;case IRQ_TYPE_EDGE_RISING : value |=BYT_TRIG_POS ;break ;case IRQ_TYPE_LEVEL_LOW : value |=BYT_TRIG_LVL ; -/* fall through */ + fallthrough;case IRQ_TYPE_EDGE_FALLING : value |=BYT_TRIG_NEG ;break ;
Signature · 1 line
2.27.0
Quoted 4 lines · Gustavo A. R. Silva
Replace the existing /* fall through */ comments and its variants with the new pseudo-keyword macro fallthrough[1].
Pushed to my review and testing queue, thanks!
Quoted 29 lines
Signed-off-by Gustavo A. R. Silva <[email protected]>--- drivers/pinctrl/intel/pinctrl-baytrail.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)drivers/pinctrl/intel/pinctrl-baytrail.c +2
-2@@ -1372,13 +1372,13 @@ static void byt_irq_unmask(struct irq_data *d)switch (irqd_get_trigger_type (d)) {case IRQ_TYPE_LEVEL_HIGH : value |=BYT_TRIG_LVL ; -/* fall through */ + fallthrough;case IRQ_TYPE_EDGE_RISING : value |=BYT_TRIG_POS ;break ;case IRQ_TYPE_LEVEL_LOW : value |=BYT_TRIG_LVL ; -/* fall through */ + fallthrough;case IRQ_TYPE_EDGE_FALLING : value |=BYT_TRIG_NEG ;break ;Signature · 1 line
2.27.0
Signature · 2 lines
With Best Regards, Andy Shevchenko