On Wed, Oct 08, 2014 at 11:00:07AM -0700, Stephen Boyd wrote:
On 10/08/2014 02:30 AM, Ivan T. Ivanov wrote:Maybe we could make the structure public instead? I do not see any
On Wed, 2014-10-08 at 12:13 +0300, Ivan T. Ivanov wrote:Maybe we can add an API to allocate an array of fields?
On Tue, 2014-10-07 at 10:26 -0700, Dmitry Torokhov wrote:Oops. struct regmap_field is opaque. It seems that the allocation
Hi Ivan,No particular reason. Will rework it.
On Tue, Oct 07, 2014 at 12:50:46PM +0300, Ivan T. Ivanov wrote:
@@ -527,10 +538,55 @@ static int pmic8xxx_kp_probe(struct platform_device *pdev)Why do we have to allocate all regmap fields separately instead of
+
+ kp->row_hold = devm_regmap_field_alloc(kp->dev, kp->regmap,
+ info->row_hold);
+ if (IS_ERR(kp->row_hold))
+ return PTR_ERR(kp->row_hold);
embedding them into keypad structure?
is the only way that I could have instance of it.
reason for allocating something separately that has exactly the same
lifetime as owning structure.