]> www.infradead.org Git - users/jedix/linux-maple.git/commit
i2c: isch: Utilize temporary variable to hold device pointer
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Mon, 16 Sep 2024 12:01:33 +0000 (15:01 +0300)
committerAndi Shyti <andi.shyti@kernel.org>
Wed, 13 Nov 2024 22:29:45 +0000 (23:29 +0100)
commit78ea39e6e939c610b1878673082fc115bfc121c9
treeec19571004e39c2f029f5601d7684b5997d3b95d
parentcc97ef79fc235fede65b02c08a9c9b93249622c9
i2c: isch: Utilize temporary variable to hold device pointer

Introduce a temporary variable to hold a device pointer.
It can be utilized in the ->probe() and save a bit of LoCs.
To make it consistent, rename currently used dev to pdev.

While at it, convert the only error message to dev_err_probe().

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: Andi Shyti <andi.shyti@kernel.org>
drivers/i2c/busses/i2c-isch.c