Commit 78f304d0 authored by Jonathan Cameron's avatar Jonathan Cameron

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: default avatarFengguang Wu <fengguang.wu@intel.com>
Signed-off-by: default avatarJonathan Cameron <jic23@kernel.org>
parent e89b6747
...@@ -50,7 +50,7 @@ static int iio_interrupt_trigger_probe(struct platform_device *pdev) ...@@ -50,7 +50,7 @@ static int iio_interrupt_trigger_probe(struct platform_device *pdev)
irq = irq_res->start; irq = irq_res->start;
trig = iio_trigger_alloc("irqtrig%d", irq_res->start); trig = iio_trigger_alloc("irqtrig%d", irq);
if (!trig) { if (!trig) {
ret = -ENOMEM; ret = -ENOMEM;
goto error_ret; goto error_ret;
......
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