]> git.baikalelectronics.ru Git - kernel.git/commit
gpio: ml-ioh: Cache &pdev->dev to reduce repetition
authorBjorn Helgaas <bhelgaas@google.com>
Tue, 30 Nov 2021 22:08:39 +0000 (16:08 -0600)
committerAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Wed, 1 Dec 2021 13:10:26 +0000 (15:10 +0200)
commit42957e4c3cdb99ebc6b066d400e9c99cf1419b00
tree14614a0e3a86389c58424348397001e9890392ce
parent1a84a23c1a28e9bcabd9fe988728ff6d41d71f5a
gpio: ml-ioh: Cache &pdev->dev to reduce repetition

ioh_gpio_probe() repeats the "&pdev->dev" expression several times.  Cache
the result as "struct device *dev" to reduce the repetition.  No functional
change intended.

Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
drivers/gpio/gpio-ml-ioh.c