Skip to content

Commit 0f7fa24

Browse files
dlechjic23
authored andcommitted
iio: resolver: ad2s1210: remove DRV_NAME macro
The DRV_NAME macro is only used in one place in the ad2s1210 driver and is not really needed so let's remove it. Suggested-by: Jonathan Cameron <jic23@kernel.org> Signed-off-by: David Lechner <dlechner@baylibre.com> Link: https://lore.kernel.org/r/20231012-ad2s1210-mainline-v1-1-b2ee31c0e9dd@baylibre.com Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
1 parent 291e45e commit 0f7fa24

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

drivers/iio/resolver/ad2s1210.c

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -68,8 +68,6 @@
6868
#include <linux/iio/trigger_consumer.h>
6969
#include <linux/iio/triggered_buffer.h>
7070

71-
#define DRV_NAME "ad2s1210"
72-
7371
/* control register flags */
7472
#define AD2S1210_ADDRESS_DATA BIT(7)
7573
#define AD2S1210_PHASE_LOCK_RANGE_44 BIT(5)
@@ -1509,7 +1507,7 @@ MODULE_DEVICE_TABLE(spi, ad2s1210_id);
15091507

15101508
static struct spi_driver ad2s1210_driver = {
15111509
.driver = {
1512-
.name = DRV_NAME,
1510+
.name = "ad2s1210",
15131511
.of_match_table = of_match_ptr(ad2s1210_of_match),
15141512
},
15151513
.probe = ad2s1210_probe,

0 commit comments

Comments
 (0)