video: mbxfb: use dev_get_platdata()
PATCH 14/19 video: mbxfb: use dev_get_platdata()
Use the wrapper function for retrieving the platform data instead of accessing dev->platform_data directly. This is a cosmetic change to make the code simpler and enhance the readability.
Signed-off-by Jingoo Han <[email protected]>
--- drivers/video/mbx/mbxfb.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/video/mbx/mbxfb.c +1 -1
@@ -890,7 +890,7 @@ static int mbxfb_probe(struct platform_device *dev)dev_dbg (&dev->dev,"mbxfb_probe\n" ); - pdata = dev->dev.platform_data; + pdata =dev_get_platdata (&dev->dev);if (!pdata) {dev_err (&dev->dev,"platform data is required\n" );return -EINVAL ;
Signature · 1 line
1.7.10.4