lkml.org 
[lkml]   [2014]   [Jul]   [21]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: [PATCH v2 2/4] pinctrl: qpnp: Qualcomm PMIC pin controller driver
From
Date
On Mon, 2014-07-21 at 21:32 +0530, divya ojha wrote:
> Hi,
>
> On Thu, Jul 17, 2014 at 8:55 PM, Ivan T. Ivanov <iivanov@mm-sol.com> wrote:
> > From: "Ivan T. Ivanov" <iivanov@mm-sol.com>
> >
> > This is the pinctrl, pinmux, pinconf and gpiolib driver for the
> > Qualcomm GPIO and MPP sub-function blocks found in the PMIC chips.
> >
> > Signed-off-by: Ivan T. Ivanov <iivanov@mm-sol.com>
> > ---
> > drivers/pinctrl/Kconfig | 12 +
> > drivers/pinctrl/Makefile | 1 +
> > drivers/pinctrl/pinctrl-qpnp.c | 1565 +++++++++++++++++++++++++
> > include/dt-bindings/pinctrl/qcom,pm8xxx-mpp.h | 34 +
> ..
> + struct device *dev = qctrl->dev;
> > + struct pinctrl_pin_desc *desc, *descs;
> > + struct qpnp_padinfo *pad, *pads;
> > + int idx, ret, cnt, gps, ais, aos, css;
> > + const char **names, *format;
> > + unsigned int addr;
> > +
> > + pads = devm_kcalloc(dev, qchip->npads, sizeof(*pads), GFP_KERNEL);
>
> when do we free these structures..?

Good description could be found here[1].

Regards,
Ivan

[1] Documentation/driver-model/devres.txt



\
 
 \ /
  Last update: 2014-07-21 19:01    [W:0.104 / U:0.196 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site