Thread (14 messages) 14 messages, 4 authors, 2014-10-27

Re: [PATCH 2/4] Input: pmic8xxx-keypad - use regmap_field for register access

From: Ivan T. Ivanov <hidden>
Date: 2014-10-08 09:13:05
Also in: linux-arm-msm, lkml

On Tue, 2014-10-07 at 10:26 -0700, Dmitry Torokhov wrote:
Hi Ivan,

On Tue, Oct 07, 2014 at 12:50:46PM +0300, Ivan T. Ivanov wrote:
quoted
@@ -527,10 +538,55 @@ static int pmic8xxx_kp_probe(struct platform_device *pdev)
 
quoted
+
+	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);
Why do we have to allocate all regmap fields separately instead of
embedding them into keypad structure?
No particular reason. Will rework it.

Thank you,
Ivan
Thanks.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help