mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Randy Dunlap <rdunlap@xenotime.net>
To: Mark Brown <broonie@opensource.wolfsonmicro.com>
Cc: linux-kernel@vger.kernel.org, patches@opensource.wolfsonmicro.com
Subject: Re: [PATCH] regmap: Rejig struct declarations for stubbed API
Date: Sun, 11 Mar 2012 08:52:57 -0700	[thread overview]
Message-ID: <4F5CCA59.3060905@xenotime.net> (raw)
In-Reply-To: <1331467010-5608-1-git-send-email-broonie@opensource.wolfsonmicro.com>

On 03/11/2012 04:56 AM, Mark Brown wrote:

> Ensure we have a forward declaration of struct regmap that isn't just
> the return value of regmap_init() and make the definition of the
> register defaults available.
> 
> Reported-by: Randy Dunlap <rdunlap@xenotime.net>
> Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>


Acked-by: Randy Dunlap <rdunlap@xenotime.net>

Thanks.

> ---
>  include/linux/regmap.h |    5 +++--
>  1 files changed, 3 insertions(+), 2 deletions(-)
> 
> diff --git a/include/linux/regmap.h b/include/linux/regmap.h
> index 33d5f1d..14b8252 100644
> --- a/include/linux/regmap.h
> +++ b/include/linux/regmap.h
> @@ -16,11 +16,10 @@
>  #include <linux/device.h>
>  #include <linux/list.h>
>  
> -#ifdef CONFIG_REGMAP
> -
>  struct module;
>  struct i2c_client;
>  struct spi_device;
> +struct regmap;
>  
>  /* An enum of all the supported cache types */
>  enum regcache_type {
> @@ -42,6 +41,8 @@ struct reg_default {
>  	unsigned int def;
>  };
>  
> +#ifdef CONFIG_REGMAP
> +
>  /**
>   * Configuration for the register map of a device.
>   *



-- 
~Randy

      reply	other threads:[~2012-03-11 15:52 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-03-11 11:56 Mark Brown
2012-03-11 15:52 ` Randy Dunlap [this message]

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=4F5CCA59.3060905@xenotime.net \
    --to=rdunlap@xenotime.net \
    --cc=broonie@opensource.wolfsonmicro.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=patches@opensource.wolfsonmicro.com \
    /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

Powered by JetHome