]> git.baikalelectronics.ru Git - kernel.git/commit
net/can: using dev_get_drvdata directly
authorFuqian Huang <huangfq.daxian@gmail.com>
Thu, 4 Jul 2019 02:36:33 +0000 (10:36 +0800)
committerDavid S. Miller <davem@davemloft.net>
Fri, 5 Jul 2019 22:24:41 +0000 (15:24 -0700)
commit94e38403fb7cec16e971630fcbb858c5cd276b4d
treeca0acb6647d350b21bd6f7293be0fbc2fdb77872
parentcaaae6f65ae727cce537a6fa206bfa7e12b7d390
net/can: using dev_get_drvdata directly

Several drivers cast a struct device pointer to a struct
platform_device pointer only to then call platform_get_drvdata().
To improve readability, these constructs can be simplified
by using dev_get_drvdata() directly.

Signed-off-by: Fuqian Huang <huangfq.daxian@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/can/softing/softing_main.c