mirror of
https://github.com/torvalds/linux.git
synced 2026-05-25 15:41:52 +02:00
iio: light: gp2ap020a00f: Explicitly use string literal for driver name
The driver name should be easily greppable and clearly spelled. Replace a level of indirection and explicitly use string literal. While at it, remove useless blank lines before module_*() and MODULE_*() macros. Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com> Signed-off-by: Ethan Tidmore <ethantidmore06@gmail.com> Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
This commit is contained in:
parent
7b53652c8c
commit
b047a2bc7a
|
|
@ -55,8 +55,6 @@
|
|||
#include <linux/iio/trigger_consumer.h>
|
||||
#include <linux/iio/triggered_buffer.h>
|
||||
|
||||
#define GP2A_I2C_NAME "gp2ap020a00f"
|
||||
|
||||
/* Registers */
|
||||
#define GP2AP020A00F_OP_REG 0x00 /* Basic operations */
|
||||
#define GP2AP020A00F_ALS_REG 0x01 /* ALS related settings */
|
||||
|
|
@ -1541,10 +1539,9 @@ static void gp2ap020a00f_remove(struct i2c_client *client)
|
|||
}
|
||||
|
||||
static const struct i2c_device_id gp2ap020a00f_id[] = {
|
||||
{ GP2A_I2C_NAME },
|
||||
{ "gp2ap020a00f" },
|
||||
{ }
|
||||
};
|
||||
|
||||
MODULE_DEVICE_TABLE(i2c, gp2ap020a00f_id);
|
||||
|
||||
static const struct of_device_id gp2ap020a00f_of_match[] = {
|
||||
|
|
@ -1555,14 +1552,13 @@ MODULE_DEVICE_TABLE(of, gp2ap020a00f_of_match);
|
|||
|
||||
static struct i2c_driver gp2ap020a00f_driver = {
|
||||
.driver = {
|
||||
.name = GP2A_I2C_NAME,
|
||||
.name = "gp2ap020a00f",
|
||||
.of_match_table = gp2ap020a00f_of_match,
|
||||
},
|
||||
.probe = gp2ap020a00f_probe,
|
||||
.remove = gp2ap020a00f_remove,
|
||||
.id_table = gp2ap020a00f_id,
|
||||
};
|
||||
|
||||
module_i2c_driver(gp2ap020a00f_driver);
|
||||
|
||||
MODULE_AUTHOR("Jacek Anaszewski <j.anaszewski@samsung.com>");
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user