Commit 38bc8015 authored by Andy Shevchenko's avatar Andy Shevchenko Committed by Jonathan Cameron

iio: st_sensors: Join string literals back

For easy grepping on debug purposes join string literals back in
the messages.

No functional change.
Signed-off-by: default avatarAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: default avatarJonathan Cameron <Jonathan.Cameron@huawei.com>
parent 7da08588
...@@ -277,8 +277,7 @@ static int st_sensors_set_drdy_int_pin(struct iio_dev *indio_dev, ...@@ -277,8 +277,7 @@ static int st_sensors_set_drdy_int_pin(struct iio_dev *indio_dev,
!sdata->sensor_settings->drdy_irq.int2.addr) { !sdata->sensor_settings->drdy_irq.int2.addr) {
if (pdata->drdy_int_pin) if (pdata->drdy_int_pin)
dev_info(&indio_dev->dev, dev_info(&indio_dev->dev,
"DRDY on pin INT%d specified, but sensor " "DRDY on pin INT%d specified, but sensor does not support interrupts\n",
"does not support interrupts\n",
pdata->drdy_int_pin); pdata->drdy_int_pin);
return 0; return 0;
} }
......
...@@ -44,8 +44,7 @@ static int st_sensors_new_samples_available(struct iio_dev *indio_dev, ...@@ -44,8 +44,7 @@ static int st_sensors_new_samples_available(struct iio_dev *indio_dev,
sdata->sensor_settings->drdy_irq.stat_drdy.addr, sdata->sensor_settings->drdy_irq.stat_drdy.addr,
&status); &status);
if (ret < 0) { if (ret < 0) {
dev_err(sdata->dev, dev_err(sdata->dev, "error checking samples available\n");
"error checking samples available\n");
return ret; return ret;
} }
...@@ -148,9 +147,7 @@ int st_sensors_allocate_trigger(struct iio_dev *indio_dev, ...@@ -148,9 +147,7 @@ int st_sensors_allocate_trigger(struct iio_dev *indio_dev,
case IRQF_TRIGGER_LOW: case IRQF_TRIGGER_LOW:
if (!sdata->sensor_settings->drdy_irq.addr_ihl) { if (!sdata->sensor_settings->drdy_irq.addr_ihl) {
dev_err(&indio_dev->dev, dev_err(&indio_dev->dev,
"falling/low specified for IRQ " "falling/low specified for IRQ but hardware supports only rising/high: will request rising/high\n");
"but hardware supports only rising/high: "
"will request rising/high\n");
if (irq_trig == IRQF_TRIGGER_FALLING) if (irq_trig == IRQF_TRIGGER_FALLING)
irq_trig = IRQF_TRIGGER_RISING; irq_trig = IRQF_TRIGGER_RISING;
if (irq_trig == IRQF_TRIGGER_LOW) if (irq_trig == IRQF_TRIGGER_LOW)
...@@ -163,8 +160,7 @@ int st_sensors_allocate_trigger(struct iio_dev *indio_dev, ...@@ -163,8 +160,7 @@ int st_sensors_allocate_trigger(struct iio_dev *indio_dev,
if (err < 0) if (err < 0)
goto iio_trigger_free; goto iio_trigger_free;
dev_info(&indio_dev->dev, dev_info(&indio_dev->dev,
"interrupts on the falling edge or " "interrupts on the falling edge or active low level\n");
"active low level\n");
} }
break; break;
case IRQF_TRIGGER_RISING: case IRQF_TRIGGER_RISING:
...@@ -178,8 +174,7 @@ int st_sensors_allocate_trigger(struct iio_dev *indio_dev, ...@@ -178,8 +174,7 @@ int st_sensors_allocate_trigger(struct iio_dev *indio_dev,
default: default:
/* This is the most preferred mode, if possible */ /* This is the most preferred mode, if possible */
dev_err(&indio_dev->dev, dev_err(&indio_dev->dev,
"unsupported IRQ trigger specified (%lx), enforce " "unsupported IRQ trigger specified (%lx), enforce rising edge\n", irq_trig);
"rising edge\n", irq_trig);
irq_trig = IRQF_TRIGGER_RISING; irq_trig = IRQF_TRIGGER_RISING;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment