mirror of
https://github.com/FEX-Emu/linux.git
synced 2025-01-16 14:38:49 +00:00
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>
This commit is contained in:
parent
f464a1d00e
commit
e06465050e
@ -23,8 +23,6 @@
|
|||||||
#include <linux/init.h>
|
#include <linux/init.h>
|
||||||
#include <linux/spi/spi.h>
|
#include <linux/spi/spi.h>
|
||||||
|
|
||||||
#define DAC7512_DRV_NAME "dac7512"
|
|
||||||
|
|
||||||
static ssize_t dac7512_store_val(struct device *dev,
|
static ssize_t dac7512_store_val(struct device *dev,
|
||||||
struct device_attribute *attr,
|
struct device_attribute *attr,
|
||||||
const char *buf, size_t count)
|
const char *buf, size_t count)
|
||||||
@ -76,7 +74,7 @@ static int dac7512_remove(struct spi_device *spi)
|
|||||||
|
|
||||||
static struct spi_driver dac7512_driver = {
|
static struct spi_driver dac7512_driver = {
|
||||||
.driver = {
|
.driver = {
|
||||||
.name = DAC7512_DRV_NAME,
|
.name = "dac7512",
|
||||||
.owner = THIS_MODULE,
|
.owner = THIS_MODULE,
|
||||||
},
|
},
|
||||||
.probe = dac7512_probe,
|
.probe = dac7512_probe,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user