mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-10-01 14:44:12 +00:00
staging: fbtft: use to_platform_device()
Use to_platform_device() instead of open-coding it. Signed-off-by: Geliang Tang <geliangtang@163.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
5d5ccf2196
commit
f6bfc25ee0
1 changed files with 1 additions and 1 deletions
|
@ -1330,7 +1330,7 @@ static void pr_spi_devices(void)
|
|||
static int p_device_found(struct device *dev, void *data)
|
||||
{
|
||||
struct platform_device
|
||||
*pdev = container_of(dev, struct platform_device, dev);
|
||||
*pdev = to_platform_device(dev);
|
||||
|
||||
if (strstr(pdev->name, "fb"))
|
||||
dev_info(dev, "%s id=%d pdata? %s\n", pdev->name, pdev->id,
|
||||
|
|
Loading…
Reference in a new issue