i2c: designware-pci: Use standard pattern for memory allocation
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Thu, 29 Sep 2022 09:42:15 +0000 (12:42 +0300)
committerWolfram Sang <wsa@kernel.org>
Sat, 1 Oct 2022 22:43:11 +0000 (00:43 +0200)
commitfe682780d5cdf7b3932c6a1c669db8fc344f7e17
treec7d1f1843f63d38c66f2c4ac19b1ce38f278e5d6
parent65769162ae4b7f2d82e54998be446226b05fcd8f
i2c: designware-pci: Use standard pattern for memory allocation

The pattern
foo = kmalloc(sizeof(*foo), GFP_KERNEL);
has an advantage when foo type is changed. Since we are planning a such,
better to be prepared by using standard pattern for memory allocation.

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Acked-by: Jarkko Nikula <jarkko.nikula@linux.intel.com>
Signed-off-by: Wolfram Sang <wsa@kernel.org>
drivers/i2c/busses/i2c-designware-pcidrv.c