File tree Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -224,8 +224,7 @@ static int cros_ec_sensorhub_probe(struct platform_device *pdev)
224
224
*/
225
225
static int cros_ec_sensorhub_suspend (struct device * dev )
226
226
{
227
- struct platform_device * pdev = to_platform_device (dev );
228
- struct cros_ec_sensorhub * sensorhub = platform_get_drvdata (pdev );
227
+ struct cros_ec_sensorhub * sensorhub = dev_get_drvdata (dev );
229
228
struct cros_ec_dev * ec = sensorhub -> ec ;
230
229
231
230
if (cros_ec_check_features (ec , EC_FEATURE_MOTION_SENSE_FIFO ))
@@ -235,8 +234,7 @@ static int cros_ec_sensorhub_suspend(struct device *dev)
235
234
236
235
static int cros_ec_sensorhub_resume (struct device * dev )
237
236
{
238
- struct platform_device * pdev = to_platform_device (dev );
239
- struct cros_ec_sensorhub * sensorhub = platform_get_drvdata (pdev );
237
+ struct cros_ec_sensorhub * sensorhub = dev_get_drvdata (dev );
240
238
struct cros_ec_dev * ec = sensorhub -> ec ;
241
239
242
240
if (cros_ec_check_features (ec , EC_FEATURE_MOTION_SENSE_FIFO ))
You can’t perform that action at this time.
0 commit comments