mail archive of the barebox mailing list
 help / color / mirror / Atom feed
From: Ahmad Fatoum <a.fatoum@pengutronix.de>
To: barebox@lists.infradead.org
Cc: Ahmad Fatoum <a.fatoum@pengutronix.de>
Subject: [PATCH 1/8] PWM: pxa: remove unused struct members
Date: Thu,  6 Feb 2020 12:23:27 +0100	[thread overview]
Message-ID: <20200206112334.14314-2-a.fatoum@pengutronix.de> (raw)
In-Reply-To: <20200206112334.14314-1-a.fatoum@pengutronix.de>

Both duty_ns and period_ns are stored to, but never read. Drop them.

Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de>
---
 drivers/pwm/pxa_pwm.c | 5 -----
 1 file changed, 5 deletions(-)

diff --git a/drivers/pwm/pxa_pwm.c b/drivers/pwm/pxa_pwm.c
index c7130c225ebe..90899fd3c985 100644
--- a/drivers/pwm/pxa_pwm.c
+++ b/drivers/pwm/pxa_pwm.c
@@ -34,8 +34,6 @@ struct pxa_pwm_chip {
 	struct pwm_chip chip;
 	void __iomem *iobase;
 	int id;
-	int duty_ns;
-	int period_ns;
 };
 
 static struct pxa_pwm_chip *to_pxa_pwm_chip(struct pwm_chip *chip)
@@ -72,9 +70,6 @@ static int pxa_pwm_config(struct pwm_chip *chip, int duty_ns, int period_ns)
 	else
 		dc = (pv + 1) * duty_ns / period_ns;
 
-	pxa_pwm->duty_ns = duty_ns;
-	pxa_pwm->period_ns = period_ns;
-
 	/* NOTE: the clock to PWM has to be enabled first
 	 * before writing to the registers
 	 */
-- 
2.25.0


_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

  reply	other threads:[~2020-02-06 11:23 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-02-06 11:23 [PATCH 0/8] PWM: misc fixes Ahmad Fatoum
2020-02-06 11:23 ` Ahmad Fatoum [this message]
2020-02-06 11:23 ` [PATCH 2/8] PWM: pxa: make MMIO writes always little endian Ahmad Fatoum
2020-02-06 11:23 ` [PATCH 3/8] regmap: forward declare structs used in header Ahmad Fatoum
2020-02-06 11:23 ` [PATCH 4/8] video: backlight-pwm: remove duplicate assignment to object Ahmad Fatoum
2020-02-06 11:23 ` [PATCH 5/8] led: pwm: don't test if pointer is smaller than zero Ahmad Fatoum
2020-02-06 11:23 ` [PATCH 6/8] led: pwm: fail if required max-brightness option is missing Ahmad Fatoum
2020-02-06 11:23 ` [PATCH 7/8] led: pwm: support active-low property Ahmad Fatoum
2020-02-06 11:23 ` [PATCH 8/8] PWM: core: constify chip->ops pointer Ahmad Fatoum
2020-02-10  8:16 ` [PATCH 0/8] PWM: misc fixes Sascha Hauer

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20200206112334.14314-2-a.fatoum@pengutronix.de \
    --to=a.fatoum@pengutronix.de \
    --cc=barebox@lists.infradead.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox