[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20120825183113.GE6520@opensource.wolfsonmicro.com>
Date: Sat, 25 Aug 2012 11:31:14 -0700
From: Mark Brown <broonie@...nsource.wolfsonmicro.com>
To: Krystian Garbaciak <krystian.garbaciak@...semi.com>
Cc: linux-kernel@...r.kernel.org, rtc-linux@...glegroups.com,
lm-sensors@...sensors.org, linux-input@...r.kernel.org,
linux-watchdog@...r.kernel.org, linux-leds@...r.kernel.org,
Samuel Ortiz <sameo@...ux.intel.com>,
Liam Girdwood <lrg@...com>,
Alessandro Zummo <a.zummo@...ertech.it>,
Jean Delvare <khali@...ux-fr.org>,
Guenter Roeck <linux@...ck-us.net>,
Dmitry Torokhov <dmitry.torokhov@...il.com>,
Ashish Jangam <ashish.jangam@...tcummins.com>,
Andrew Jones <drjones@...hat.com>,
Donggeun Kim <dg77.kim@...sung.com>,
Philippe Rétornaz <philippe.retornaz@...l.ch>,
Wim Van Sebroeck <wim@...ana.be>,
Bryan Wu <bryan.wu@...onical.com>,
"Richard Purdie <rpurdie@...ys.net> Anthony Olech"
<anthony.olech@...semi.com>
Subject: Re: [PATCH 1/8] mfd: Add Dialog DA906x core driver.
On Fri, Aug 24, 2012 at 02:50:00PM +0100, Krystian Garbaciak wrote:
> This is MFD module providing access to registers and interrupts of DA906x
> series PMIC. It is used by other functional modules, registered as MFD cells.
> Driver uses regmap with paging to access extended register list. Register map
> is divided into two pages, where the second page is used during initialisation.
Your selection of people to CC here appears both large and random...
> +inline unsigned int da906x_to_range_reg(u16 reg)
> +{
> + return reg + DA906X_MAPPING_BASE;
> +}
I've no real idea what this stuff is all about, it at least needs some
comments somewhere. The fact that you're just adding a constant offset
to all registers is at best odd.
> + if (pdata->flags & DA906X_FLG_NO_CACHE)
> + config = &da906x_no_cache_regmap_config;
No, why would anyone ever want this and why would this not apply to all
other drivers?
> +static const struct i2c_device_id da906x_i2c_id[] = {
> + {"da906x", PMIC_DA9063},
> + {},
> +};
> +MODULE_DEVICE_TABLE(i2c, da906x_i2c_id);
List the actual devices here.
> +#define DA906X_IRQ_BASE_OFFSET 0
Hrm?
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists