|
|
@@ -76,8 +76,8 @@ static void gpio_enable(struct timed_output_dev *dev, int value)
|
|
|
value = data->max_timeout;
|
|
|
|
|
|
hrtimer_start(&data->timer,
|
|
|
- ktime_set(value / 1000, (value % 1000) * 1000000),
|
|
|
- HRTIMER_MODE_REL);
|
|
|
+ ktime_set(value / 1000, (value % 1000) * 1000000),
|
|
|
+ HRTIMER_MODE_REL);
|
|
|
}
|
|
|
|
|
|
spin_unlock_irqrestore(&data->lock, flags);
|
|
|
@@ -94,8 +94,8 @@ static int timed_gpio_probe(struct platform_device *pdev)
|
|
|
return -EBUSY;
|
|
|
|
|
|
gpio_data = devm_kzalloc(&pdev->dev,
|
|
|
- sizeof(struct timed_gpio_data) * pdata->num_gpios,
|
|
|
- GFP_KERNEL);
|
|
|
+ sizeof(*gpio_data) * pdata->num_gpios,
|
|
|
+ GFP_KERNEL);
|
|
|
if (!gpio_data)
|
|
|
return -ENOMEM;
|
|
|
|
|
|
@@ -104,7 +104,7 @@ static int timed_gpio_probe(struct platform_device *pdev)
|
|
|
gpio_dat = &gpio_data[i];
|
|
|
|
|
|
hrtimer_init(&gpio_dat->timer, CLOCK_MONOTONIC,
|
|
|
- HRTIMER_MODE_REL);
|
|
|
+ HRTIMER_MODE_REL);
|
|
|
gpio_dat->timer.function = gpio_timer_func;
|
|
|
spin_lock_init(&gpio_dat->lock);
|
|
|
|