]> git.baikalelectronics.ru Git - kernel.git/commit
spi: Use device_find_any_child() instead of custom approach
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Fri, 10 Jun 2022 12:02:19 +0000 (15:02 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 10 Jun 2022 14:01:55 +0000 (16:01 +0200)
commit00fb46c564bfb99d9e4c9ad669c3493436a71a73
tree40a2a7ecb942e52c06068d46dbee1c266a3cf1df
parentfed6d8f7cf6e3b383576b8fbae601ad613df3e21
spi: Use device_find_any_child() instead of custom approach

We have already a helper to get the first child device, use it and
drop custom approach.

Reviewed-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Acked-by: Mark Brown <broonie@kernel.org>
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Link: https://lore.kernel.org/r/20220610120219.18988-2-andriy.shevchenko@linux.intel.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/spi/spi.c