[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20200224075302.jd3vcrdl6fuqrkpb@pengutronix.de>
Date: Mon, 24 Feb 2020 08:53:02 +0100
From: Uwe Kleine-König
<u.kleine-koenig@...gutronix.de>
To: Lokesh Vutla <lokeshvutla@...com>
Cc: Thierry Reding <thierry.reding@...il.com>,
Tony Lindgren <tony@...mide.com>,
Linux OMAP Mailing List <linux-omap@...r.kernel.org>,
linux-kernel@...r.kernel.org, linux-pwm@...r.kernel.org,
Sekhar Nori <nsekhar@...com>
Subject: Re: [PATCH 1/4] pwm: omap-dmtimer: Drop unused header file
Hello,
On Mon, Feb 24, 2020 at 10:51:32AM +0530, Lokesh Vutla wrote:
> @@ -190,9 +190,8 @@ static int pwm_omap_dmtimer_config(struct pwm_chip *chip,
> load_value, load_value, match_value, match_value);
>
> omap->pdata->set_pwm(omap->dm_timer,
> - pwm_get_polarity(pwm) == PWM_POLARITY_INVERSED,
> - true,
> - PWM_OMAP_DMTIMER_TRIGGER_OVERFLOW_AND_COMPARE);
> + pwm_get_polarity(pwm) == PWM_POLARITY_INVERSED,
> + true, OMAP_TIMER_TRIGGER_OVERFLOW_AND_COMPARE);
This is unrelated.
>
> /* If config was called while timer was running it must be reenabled. */
> if (timer_active)
> @@ -220,9 +219,8 @@ static int pwm_omap_dmtimer_set_polarity(struct pwm_chip *chip,
> */
> mutex_lock(&omap->mutex);
> omap->pdata->set_pwm(omap->dm_timer,
> - polarity == PWM_POLARITY_INVERSED,
> - true,
> - PWM_OMAP_DMTIMER_TRIGGER_OVERFLOW_AND_COMPARE);
> + polarity == PWM_POLARITY_INVERSED,
> + true, OMAP_TIMER_TRIGGER_OVERFLOW_AND_COMPARE);
ditto
> mutex_unlock(&omap->mutex);
>
> return 0;
> @@ -244,7 +242,7 @@ static int pwm_omap_dmtimer_probe(struct platform_device *pdev)
> struct pwm_omap_dmtimer_chip *omap;
> struct dmtimer_platform_data *timer_pdata;
> const struct omap_dm_timer_ops *pdata;
> - pwm_omap_dmtimer *dm_timer;
> + struct omap_dm_timer *dm_timer;
> u32 v;
> int ret = 0;
>
Other than that looks fine.
Best regards
Uwe
--
Pengutronix e.K. | Uwe Kleine-König |
Industrial Linux Solutions | https://www.pengutronix.de/ |
Powered by blists - more mailing lists