Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

iio: Remove single use of macro definition for IRQ name

There is really no reason for having the IRQ name as a macro definition
if it is only used once (often in functions requesting the IRQ). It
is also more readable this way. Remove these macro definitions and
instead use the string literal directly.

Signed-off-by: Waqar Hameed <waqar.hameed@axis.com>
Link: https://patch.msgid.link/3dc06cb2a83d292c50d9758643aad37ca5c6d95c.1748356671.git.waqar.hameed@axis.com
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>

authored by

Waqar Hameed and committed by
Jonathan Cameron
a8c1039c 178e4bc1

+15 -34
+1 -2
drivers/iio/accel/bmc150-accel-core.c
··· 26 26 #include "bmc150-accel.h" 27 27 28 28 #define BMC150_ACCEL_DRV_NAME "bmc150_accel" 29 - #define BMC150_ACCEL_IRQ_NAME "bmc150_accel_event" 30 29 31 30 #define BMC150_ACCEL_REG_CHIP_ID 0x00 32 31 ··· 1705 1706 bmc150_accel_irq_handler, 1706 1707 bmc150_accel_irq_thread_handler, 1707 1708 IRQF_TRIGGER_RISING, 1708 - BMC150_ACCEL_IRQ_NAME, 1709 + "bmc150_accel_event", 1709 1710 indio_dev); 1710 1711 if (ret) 1711 1712 goto err_buffer_cleanup;
+1 -3
drivers/iio/accel/kxcjk-1013.c
··· 26 26 #include <linux/iio/triggered_buffer.h> 27 27 #include <linux/iio/accel/kxcjk_1013.h> 28 28 29 - #define KXCJK1013_IRQ_NAME "kxcjk1013_event" 30 - 31 29 #define KXTF9_REG_HP_XOUT_L 0x00 32 30 #define KXTF9_REG_HP_XOUT_H 0x01 33 31 #define KXTF9_REG_HP_YOUT_L 0x02 ··· 1461 1463 kxcjk1013_data_rdy_trig_poll, 1462 1464 kxcjk1013_event_handler, 1463 1465 IRQF_TRIGGER_RISING, 1464 - KXCJK1013_IRQ_NAME, 1466 + "kxcjk1013_event", 1465 1467 indio_dev); 1466 1468 if (ret) 1467 1469 goto err_poweroff;
+1 -2
drivers/iio/accel/mma9551.c
··· 17 17 #include <linux/pm_runtime.h> 18 18 #include "mma9551_core.h" 19 19 20 - #define MMA9551_IRQ_NAME "mma9551_event" 21 20 #define MMA9551_GPIO_COUNT 4 22 21 23 22 /* Tilt application (inclination in IIO terms). */ ··· 420 421 ret = devm_request_threaded_irq(dev, data->irqs[i], 421 422 NULL, mma9551_event_handler, 422 423 IRQF_TRIGGER_RISING | IRQF_ONESHOT, 423 - MMA9551_IRQ_NAME, indio_dev); 424 + "mma9551_event", indio_dev); 424 425 if (ret < 0) { 425 426 dev_err(dev, "request irq %d failed\n", data->irqs[i]); 426 427 return ret;
+1 -3
drivers/iio/accel/mma9553.c
··· 15 15 #include <linux/pm_runtime.h> 16 16 #include "mma9551_core.h" 17 17 18 - #define MMA9553_IRQ_NAME "mma9553_event" 19 - 20 18 /* Pedometer configuration registers (R/W) */ 21 19 #define MMA9553_REG_CONF_SLEEPMIN 0x00 22 20 #define MMA9553_REG_CONF_SLEEPMAX 0x02 ··· 1099 1101 mma9553_irq_handler, 1100 1102 mma9553_event_handler, 1101 1103 IRQF_TRIGGER_RISING, 1102 - MMA9553_IRQ_NAME, indio_dev); 1104 + "mma9553_event", indio_dev); 1103 1105 if (ret < 0) { 1104 1106 dev_err(&client->dev, "request irq %d failed\n", 1105 1107 client->irq);
+1 -2
drivers/iio/accel/mxc4005.c
··· 19 19 #include <linux/iio/trigger_consumer.h> 20 20 21 21 #define MXC4005_DRV_NAME "mxc4005" 22 - #define MXC4005_IRQ_NAME "mxc4005_event" 23 22 #define MXC4005_REGMAP_NAME "mxc4005_regmap" 24 23 25 24 #define MXC4005_REG_XOUT_UPPER 0x03 ··· 492 493 NULL, 493 494 IRQF_TRIGGER_FALLING | 494 495 IRQF_ONESHOT, 495 - MXC4005_IRQ_NAME, 496 + "mxc4005_event", 496 497 data->dready_trig); 497 498 if (ret) { 498 499 dev_err(&client->dev,
+1 -2
drivers/iio/accel/stk8312.c
··· 46 46 #define STK8312_ALL_CHANNEL_SIZE 3 47 47 48 48 #define STK8312_DRIVER_NAME "stk8312" 49 - #define STK8312_IRQ_NAME "stk8312_event" 50 49 51 50 /* 52 51 * The accelerometer has two measurement ranges: ··· 542 543 NULL, 543 544 IRQF_TRIGGER_RISING | 544 545 IRQF_ONESHOT, 545 - STK8312_IRQ_NAME, 546 + "stk8312_event", 546 547 indio_dev); 547 548 if (ret < 0) { 548 549 dev_err(&client->dev, "request irq %d failed\n",
+1 -2
drivers/iio/accel/stk8ba50.c
··· 42 42 #define STK8BA50_ALL_CHANNEL_SIZE 6 43 43 44 44 #define STK8BA50_DRIVER_NAME "stk8ba50" 45 - #define STK8BA50_IRQ_NAME "stk8ba50_event" 46 45 47 46 #define STK8BA50_SCALE_AVAIL "0.0384 0.0767 0.1534 0.3069" 48 47 ··· 435 436 NULL, 436 437 IRQF_TRIGGER_RISING | 437 438 IRQF_ONESHOT, 438 - STK8BA50_IRQ_NAME, 439 + "stk8ba50_event", 439 440 indio_dev); 440 441 if (ret < 0) { 441 442 dev_err(&client->dev, "request irq %d failed\n",
+1 -3
drivers/iio/gyro/bmg160_core.c
··· 21 21 #include <linux/regulator/consumer.h> 22 22 #include "bmg160.h" 23 23 24 - #define BMG160_IRQ_NAME "bmg160_event" 25 - 26 24 #define BMG160_REG_CHIP_ID 0x00 27 25 #define BMG160_CHIP_ID_VAL 0x0F 28 26 ··· 1097 1099 bmg160_data_rdy_trig_poll, 1098 1100 bmg160_event_handler, 1099 1101 IRQF_TRIGGER_RISING, 1100 - BMG160_IRQ_NAME, 1102 + "bmg160_event", 1101 1103 indio_dev); 1102 1104 if (ret) 1103 1105 return ret;
+1 -3
drivers/iio/imu/kmx61.c
··· 22 22 #include <linux/iio/triggered_buffer.h> 23 23 #include <linux/iio/trigger_consumer.h> 24 24 25 - #define KMX61_IRQ_NAME "kmx61_event" 26 - 27 25 #define KMX61_REG_WHO_AM_I 0x00 28 26 #define KMX61_REG_INS1 0x01 29 27 #define KMX61_REG_INS2 0x02 ··· 1309 1311 kmx61_data_rdy_trig_poll, 1310 1312 kmx61_event_handler, 1311 1313 IRQF_TRIGGER_RISING, 1312 - KMX61_IRQ_NAME, 1314 + "kmx61_event", 1313 1315 data); 1314 1316 if (ret) 1315 1317 goto err_chip_uninit;
+1 -2
drivers/iio/light/apds9300.c
··· 17 17 #include <linux/iio/events.h> 18 18 19 19 #define APDS9300_DRV_NAME "apds9300" 20 - #define APDS9300_IRQ_NAME "apds9300_event" 21 20 22 21 /* Command register bits */ 23 22 #define APDS9300_CMD BIT(7) /* Select command register. Must write as 1 */ ··· 431 432 ret = devm_request_threaded_irq(&client->dev, client->irq, 432 433 NULL, apds9300_interrupt_handler, 433 434 IRQF_TRIGGER_FALLING | IRQF_ONESHOT, 434 - APDS9300_IRQ_NAME, indio_dev); 435 + "apds9300_event", indio_dev); 435 436 if (ret) { 436 437 dev_err(&client->dev, "irq request error %d\n", -ret); 437 438 goto err;
+1 -2
drivers/iio/light/rpr0521.c
··· 69 69 #define RPR0521_DEFAULT_MEAS_TIME 0x06 /* ALS - 100ms, PXS - 100ms */ 70 70 71 71 #define RPR0521_DRV_NAME "RPR0521" 72 - #define RPR0521_IRQ_NAME "rpr0521_event" 73 72 #define RPR0521_REGMAP_NAME "rpr0521_regmap" 74 73 75 74 #define RPR0521_SLEEP_DELAY_MS 2000 ··· 990 991 ret = devm_request_threaded_irq(&client->dev, client->irq, 991 992 rpr0521_drdy_irq_handler, rpr0521_drdy_irq_thread, 992 993 IRQF_TRIGGER_FALLING | IRQF_ONESHOT, 993 - RPR0521_IRQ_NAME, indio_dev); 994 + "rpr0521_event", indio_dev); 994 995 if (ret < 0) { 995 996 dev_err(&client->dev, "request irq %d for trigger0 failed\n", 996 997 client->irq);
+1 -2
drivers/iio/light/stk3310.c
··· 47 47 48 48 #define STK3310_DRIVER_NAME "stk3310" 49 49 #define STK3310_REGMAP_NAME "stk3310_regmap" 50 - #define STK3310_EVENT "stk3310_event" 51 50 52 51 #define STK3310_SCALE_AVAILABLE "6.4 1.6 0.4 0.1" 53 52 ··· 642 643 stk3310_irq_event_handler, 643 644 IRQF_TRIGGER_FALLING | 644 645 IRQF_ONESHOT, 645 - STK3310_EVENT, indio_dev); 646 + "stk3310_event", indio_dev); 646 647 if (ret < 0) { 647 648 dev_err(&client->dev, "request irq %d failed\n", 648 649 client->irq);
+1 -2
drivers/iio/light/vcnl4035.c
··· 23 23 #include <linux/iio/triggered_buffer.h> 24 24 25 25 #define VCNL4035_DRV_NAME "vcnl4035" 26 - #define VCNL4035_IRQ_NAME "vcnl4035_event" 27 26 #define VCNL4035_REGMAP_NAME "vcnl4035_regmap" 28 27 29 28 /* Device registers */ ··· 544 545 ret = devm_request_threaded_irq(&data->client->dev, data->client->irq, 545 546 NULL, vcnl4035_drdy_irq_thread, 546 547 IRQF_TRIGGER_LOW | IRQF_ONESHOT, 547 - VCNL4035_IRQ_NAME, indio_dev); 548 + "vcnl4035_event", indio_dev); 548 549 if (ret < 0) 549 550 dev_err(&data->client->dev, "request irq %d for trigger0 failed\n", 550 551 data->client->irq);
+1 -2
drivers/iio/magnetometer/bmc150_magn.c
··· 29 29 #include "bmc150_magn.h" 30 30 31 31 #define BMC150_MAGN_DRV_NAME "bmc150_magn" 32 - #define BMC150_MAGN_IRQ_NAME "bmc150_magn_event" 33 32 34 33 #define BMC150_MAGN_REG_CHIP_ID 0x40 35 34 #define BMC150_MAGN_CHIP_ID_VAL 0x32 ··· 917 918 iio_trigger_generic_data_rdy_poll, 918 919 NULL, 919 920 IRQF_TRIGGER_RISING | IRQF_ONESHOT, 920 - BMC150_MAGN_IRQ_NAME, 921 + "bmc150_magn_event", 921 922 data->dready_trig); 922 923 if (ret < 0) { 923 924 dev_err(dev, "request irq %d failed\n", irq);
+1 -2
drivers/iio/proximity/sx9500.c
··· 27 27 #include <linux/iio/trigger_consumer.h> 28 28 29 29 #define SX9500_DRIVER_NAME "sx9500" 30 - #define SX9500_IRQ_NAME "sx9500_event" 31 30 32 31 /* Register definitions. */ 33 32 #define SX9500_REG_IRQ_SRC 0x00 ··· 937 938 ret = devm_request_threaded_irq(&client->dev, client->irq, 938 939 sx9500_irq_handler, sx9500_irq_thread_handler, 939 940 IRQF_TRIGGER_FALLING | IRQF_ONESHOT, 940 - SX9500_IRQ_NAME, indio_dev); 941 + "sx9500_event", indio_dev); 941 942 if (ret < 0) 942 943 return ret; 943 944