summaryrefslogtreecommitdiff
path: root/drivers/misc/ti_dac7512.c
diff options
context:
space:
mode:
authorDaniel Mack <zonque@gmail.com>2013-09-22 19:51:47 (GMT)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2013-09-26 16:04:05 (GMT)
commite06465050e2a62ccab164d116e443101279c14bb (patch)
tree9659c85983696394da6b8c4a045e715432297408 /drivers/misc/ti_dac7512.c
parentf464a1d00e42b325f70fa33e4e036032fdc62499 (diff)
downloadlinux-e06465050e2a62ccab164d116e443101279c14bb.tar.xz
drivers: misc: ti_dac7512: drop DAC7512_DRV_NAME
The driver's name can be provided directly, so drop the #define. Signed-off-by: Daniel Mack <zonque@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/misc/ti_dac7512.c')
-rw-r--r--drivers/misc/ti_dac7512.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/misc/ti_dac7512.c b/drivers/misc/ti_dac7512.c
index db47333..46dfbf3 100644
--- a/drivers/misc/ti_dac7512.c
+++ b/drivers/misc/ti_dac7512.c
@@ -23,8 +23,6 @@
#include <linux/init.h>
#include <linux/spi/spi.h>
-#define DAC7512_DRV_NAME "dac7512"
-
static ssize_t dac7512_store_val(struct device *dev,
struct device_attribute *attr,
const char *buf, size_t count)
@@ -76,7 +74,7 @@ static int dac7512_remove(struct spi_device *spi)
static struct spi_driver dac7512_driver = {
.driver = {
- .name = DAC7512_DRV_NAME,
+ .name = "dac7512",
.owner = THIS_MODULE,
},
.probe = dac7512_probe,