From: Fengguang Wu <fengguang.wu@intel.com>
To: Mark Brown <broonie@opensource.wolfsonmicro.com>
Cc: alsa-devel@alsa-project.org
Subject: [asoc:topic/adsp 33/33] sound/soc/codecs/wm2200.c:2555:10: sparse: unknown field name in initializer
Date: Sun, 28 Oct 2012 07:56:12 +0800 [thread overview]
Message-ID: <20121027235612.GA3780@localhost> (raw)
In-Reply-To: <508c2732.ewftUhxw7qt5dqmE%yuanhan.liu@linux.intel.com>
Hi Mark,
Errors in tree:
git://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git topic/adsp
sound/soc/codecs/wm2200.c:2555:10: sparse: unknown field name in initializer
sound/soc/codecs/wm2200.c:2555:2: error: unknown field 'num_ranges' specified in initializer
vim +2555 sound/soc/codecs/wm2200.c
d5315a23 Mark Brown 2012-01-25 2543 static const struct regmap_config wm2200_regmap = {
d5315a23 Mark Brown 2012-01-25 2544 .reg_bits = 16,
d5315a23 Mark Brown 2012-01-25 2545 .val_bits = 16,
d5315a23 Mark Brown 2012-01-25 2546
eae2328d Mark Brown 2012-10-02 2547 .max_register = WM2200_MAX_REGISTER + (ARRAY_SIZE(wm2200_ranges) *
eae2328d Mark Brown 2012-10-02 2548 WM2200_DSP_SPACING),
d5315a23 Mark Brown 2012-01-25 2549 .reg_defaults = wm2200_reg_defaults,
d5315a23 Mark Brown 2012-01-25 2550 .num_reg_defaults = ARRAY_SIZE(wm2200_reg_defaults),
d5315a23 Mark Brown 2012-01-25 2551 .volatile_reg = wm2200_volatile_register,
d5315a23 Mark Brown 2012-01-25 2552 .readable_reg = wm2200_readable_register,
d5315a23 Mark Brown 2012-01-25 2553 .cache_type = REGCACHE_RBTREE,
eae2328d Mark Brown 2012-10-02 2554 .ranges = wm2200_ranges,
eae2328d Mark Brown 2012-10-02 @2555 .num_ranges = ARRAY_SIZE(wm2200_ranges),
It seems eae2328d introduced the .num_ranges reference while
struct regmap_config only defined:
const struct regmap_range_cfg *ranges;
unsigned int n_ranges;
};
Thanks,
Fengguang
parent reply other threads:[~2012-10-27 23:56 UTC|newest]
Thread overview: expand[flat|nested] mbox.gz Atom feed
[parent not found: <508c2732.ewftUhxw7qt5dqmE%yuanhan.liu@linux.intel.com>]
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=20121027235612.GA3780@localhost \
--to=fengguang.wu@intel.com \
--cc=alsa-devel@alsa-project.org \
--cc=broonie@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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.