iio: accel: st_accel: rename H3LIS331DL_DRIVER_NAME in H3LIS331DL_ACCEL_DEV_NAME

In order to use the standard name convention rename H3LIS331DL_DRIVER_NAME
macro in H3LIS331DL_ACCEL_DEV_NAME

Signed-off-by: Lorenzo Bianconi <lorenzo.bianconi@st.com>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
This commit is contained in:
Lorenzo Bianconi 2017-07-08 13:00:18 +02:00 committed by Jonathan Cameron
parent 2b96d66c20
commit b30f159367
4 changed files with 6 additions and 6 deletions

View File

@ -35,7 +35,7 @@ enum st_accel_type {
ST_ACCEL_MAX, ST_ACCEL_MAX,
}; };
#define H3LIS331DL_DRIVER_NAME "h3lis331dl_accel" #define H3LIS331DL_ACCEL_DEV_NAME "h3lis331dl_accel"
#define LIS3LV02DL_ACCEL_DEV_NAME "lis3lv02dl_accel" #define LIS3LV02DL_ACCEL_DEV_NAME "lis3lv02dl_accel"
#define LSM303DLHC_ACCEL_DEV_NAME "lsm303dlhc_accel" #define LSM303DLHC_ACCEL_DEV_NAME "lsm303dlhc_accel"
#define LIS3DH_ACCEL_DEV_NAME "lis3dh" #define LIS3DH_ACCEL_DEV_NAME "lis3dh"

View File

@ -444,7 +444,7 @@ static const struct st_sensor_settings st_accel_sensors_settings[] = {
.wai = 0x32, .wai = 0x32,
.wai_addr = ST_SENSORS_DEFAULT_WAI_ADDRESS, .wai_addr = ST_SENSORS_DEFAULT_WAI_ADDRESS,
.sensors_supported = { .sensors_supported = {
[0] = H3LIS331DL_DRIVER_NAME, [0] = H3LIS331DL_ACCEL_DEV_NAME,
}, },
.ch = (struct iio_chan_spec *)st_accel_12bit_channels, .ch = (struct iio_chan_spec *)st_accel_12bit_channels,
.odr = { .odr = {

View File

@ -84,7 +84,7 @@ static const struct of_device_id st_accel_of_match[] = {
}, },
{ {
.compatible = "st,h3lis331dl-accel", .compatible = "st,h3lis331dl-accel",
.data = H3LIS331DL_DRIVER_NAME, .data = H3LIS331DL_ACCEL_DEV_NAME,
}, },
{ {
.compatible = "st,lis3l02dq", .compatible = "st,lis3l02dq",
@ -126,7 +126,7 @@ static const struct i2c_device_id st_accel_id_table[] = {
{ LIS2DH12_ACCEL_DEV_NAME, LIS2DH12 }, { LIS2DH12_ACCEL_DEV_NAME, LIS2DH12 },
{ LIS3L02DQ_ACCEL_DEV_NAME, LIS3L02DQ }, { LIS3L02DQ_ACCEL_DEV_NAME, LIS3L02DQ },
{ LNG2DM_ACCEL_DEV_NAME, LNG2DM }, { LNG2DM_ACCEL_DEV_NAME, LNG2DM },
{ H3LIS331DL_DRIVER_NAME, H3LIS331DL }, { H3LIS331DL_ACCEL_DEV_NAME, H3LIS331DL },
{ LIS331DL_ACCEL_DEV_NAME, LIS331DL }, { LIS331DL_ACCEL_DEV_NAME, LIS331DL },
{ LIS3LV02DL_ACCEL_DEV_NAME, LIS3LV02DL }, { LIS3LV02DL_ACCEL_DEV_NAME, LIS3LV02DL },
{}, {},

View File

@ -76,7 +76,7 @@ static const struct of_device_id st_accel_of_match[] = {
}, },
{ {
.compatible = "st,h3lis331dl-accel", .compatible = "st,h3lis331dl-accel",
.data = H3LIS331DL_DRIVER_NAME, .data = H3LIS331DL_ACCEL_DEV_NAME,
}, },
{ {
.compatible = "st,lis331dl-accel", .compatible = "st,lis331dl-accel",
@ -130,7 +130,7 @@ static const struct spi_device_id st_accel_id_table[] = {
{ LIS2DH12_ACCEL_DEV_NAME }, { LIS2DH12_ACCEL_DEV_NAME },
{ LIS3L02DQ_ACCEL_DEV_NAME }, { LIS3L02DQ_ACCEL_DEV_NAME },
{ LNG2DM_ACCEL_DEV_NAME }, { LNG2DM_ACCEL_DEV_NAME },
{ H3LIS331DL_DRIVER_NAME }, { H3LIS331DL_ACCEL_DEV_NAME },
{ LIS331DL_ACCEL_DEV_NAME }, { LIS331DL_ACCEL_DEV_NAME },
{ LIS3LV02DL_ACCEL_DEV_NAME }, { LIS3LV02DL_ACCEL_DEV_NAME },
{}, {},