linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
From: thomas.petazzoni@free-electrons.com (Thomas Petazzoni)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH 01/15] pinctrl: sunxi: Add const qualifier to the pin descriptor
Date: Tue, 29 Apr 2014 02:42:54 +0200	[thread overview]
Message-ID: <20140429024254.772577a9@skate> (raw)
In-Reply-To: <1398711701-11309-2-git-send-email-maxime.ripard@free-electrons.com>

Dear Maxime Ripard,

On Mon, 28 Apr 2014 12:01:27 -0700, Maxime Ripard wrote:

> -	pctl->desc = (struct sunxi_pinctrl_desc *)device->data;
> +	pctl->desc = (const struct sunxi_pinctrl_desc *)device->data;

I believe you no longer need the cast here. You used to need a cast
because you were putting a 'const void *' pointer into a non-const
pointer. Now that pctl->desc is const, the cast has become useless, I
believe.

Thomas
-- 
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com

  reply	other threads:[~2014-04-29  0:42 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-04-28 19:01 [PATCH 00/15] pinctrl: sunxi: Rework and cleanups Maxime Ripard
2014-04-28 19:01 ` [PATCH 01/15] pinctrl: sunxi: Add const qualifier to the pin descriptor Maxime Ripard
2014-04-29  0:42   ` Thomas Petazzoni [this message]
2014-04-28 19:01 ` [PATCH 02/15] pinctrl: sunxi: Drop unused structure members Maxime Ripard
2014-04-28 19:01 ` [PATCH 05/15] pinctrl: sunxi: Switch to devm_ioremap_resource Maxime Ripard
2014-04-28 19:01 ` [PATCH 06/15] pinctrl: sunxi: Libraryse the driver Maxime Ripard
2014-04-28 19:01 ` [PATCH 07/15] pinctrl: sunxi: Move Allwinner A10 pinctrl driver to a driver of its own Maxime Ripard
2014-04-28 19:01 ` [PATCH 08/15] pinctrl: sunxi: Move Allwinner A10s " Maxime Ripard
2014-04-28 19:01 ` [PATCH 09/15] pinctrl: sunxi: Move Allwinner A13 " Maxime Ripard
2014-04-28 19:01 ` [PATCH 10/15] pinctrl: sunxi: Move Allwinner A31 " Maxime Ripard
2014-04-28 19:01 ` [PATCH 11/15] pinctrl: sunxi: Move Allwinner A31 special pins " Maxime Ripard
2014-04-28 19:01 ` [PATCH 12/15] pinctrl: sunxi: Move Allwinner A20 pinctrl " Maxime Ripard
2014-04-28 19:01 ` [PATCH 13/15] pinctrl: sunxi: Introduce per-driver Kconfig options Maxime Ripard
2014-04-28 19:01 ` [PATCH 14/15] pinctrl: sunxi: Move the reset handling functions out of the core Maxime Ripard
2014-04-28 19:01 ` [PATCH 15/15] ARM: sunxi: Update pinctrl Kconfig options Maxime Ripard
2014-05-03 21:22 ` [PATCH 00/15] pinctrl: sunxi: Rework and cleanups Linus Walleij
2014-05-05  1:10   ` Maxime Ripard

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=20140429024254.772577a9@skate \
    --to=thomas.petazzoni@free-electrons.com \
    --cc=linux-arm-kernel@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;
as well as URLs for NNTP newsgroup(s).