sm501_device
static struct platform_device sm501_device = {
&sm501_device,
static struct platform_device sm501_device = {
&sm501_device,
struct sm501_device *smdev)
struct sm501_device *smdev, *tmp;
static struct sm501_device *to_sm_device(struct platform_device *pdev)
return container_of(pdev, struct sm501_device, pdev);
struct sm501_device *smdev;
smdev = kzalloc(sizeof(struct sm501_device) +
struct sm501_device *smdev = to_sm_device(pdev);