commit | 6136597c8feae2cfefd80973b966c092c4ab42d9 | [log] [tgz] |
---|---|---|
author | Andy Shevchenko <andriy.shevchenko@linux.intel.com> | Tue Oct 03 17:21:21 2023 +0300 |
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | Thu Oct 05 11:12:59 2023 +0200 |
tree | 0bb92e6b29eb03621aefb892c03c736a6b977ecc | |
parent | a549e3aac29cde86c1ade76909df759918c11653 [diff] |
driver core: platform: Use temporary variable in platform_device_add() With the temporary variable for the struct device pointer the code looks better and slightly easier to read and parse by human being. Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com> Link: https://lore.kernel.org/r/20231003142122.3072824-3-andriy.shevchenko@linux.intel.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>