mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 03:27:44 -04:00
iio:trigger:interrupt fix formatting of rsize variable in name
The name includes irq_res->start which of type resource_size_t not integer. We could in theory use %pa for this but then it would be in hex and also that causes a warning about incorrect types anyway. Hence just use the irq local variable we assigned the line above. Reported-by: Fengguang Wu <[email protected]> Signed-off-by: Jonathan Cameron <[email protected]>
This commit is contained in:
parent
e89b674705
commit
78f304d06c
1 changed files with 1 additions and 1 deletions
|
|
@ -50,7 +50,7 @@ static int iio_interrupt_trigger_probe(struct platform_device *pdev)
|
|||
|
||||
irq = irq_res->start;
|
||||
|
||||
trig = iio_trigger_alloc("irqtrig%d", irq_res->start);
|
||||
trig = iio_trigger_alloc("irqtrig%d", irq);
|
||||
if (!trig) {
|
||||
ret = -ENOMEM;
|
||||
goto error_ret;
|
||||
|
|
|
|||
Loading…
Reference in a new issue