media: ir-spi: Utilise temporary variable for struct device
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Tue, 5 Mar 2024 17:48:28 +0000 (19:48 +0200)
committerHans Verkuil <hverkuil-cisco@xs4all.nl>
Mon, 25 Mar 2024 09:13:44 +0000 (10:13 +0100)
commit37308961cff12dc17b018833ac429c4db38e8eea
treed0db8b6dd82bf656d9c1ce32b48584b5d85790ec
parent191d638f2dc79d41b264a8b9b1dfce0774c492cb
media: ir-spi: Utilise temporary variable for struct device

We have a temporary variable to keep pointer to struct device.
Utilise it inside the ->probe() implementation.

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Reviewed-by: Andi Shyti <andi.shyti@kernel.org>
Signed-off-by: Sean Young <sean@mess.org>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
drivers/media/rc/ir-spi.c