Thread (18 messages) 18 messages, 5 authors, 2015-02-17

RE: [PATCH v6 3/7] iio: Add support for DA9150 GPADC

From: Opensource [Adam Thomson] <hidden>
Date: 2015-01-27 16:15:51
Also in: linux-iio, linux-pm, lkml

On January 21, 2015 16:07, Varka Bhadram wrote:
On Wednesday 21 January 2015 09:16 PM, Adam Thomson wrote:
quoted
This patch adds support for DA9150 Charger & Fuel-Gauge IC GPADC.

Signed-off-by: Adam Thomson <redacted>
Reviewed-by: Hartmut Knaack <redacted>
Acked-by: Jonathan Cameron <jic23@kernel.org>
(...)
quoted
+
+static int da9150_gpadc_probe(struct platform_device *pdev)
+{
+	struct device *dev = &pdev->dev;
+	struct da9150 *da9150 = dev_get_drvdata(dev->parent);
+	struct da9150_gpadc *gpadc;
+	struct iio_dev *indio_dev;
+	int irq, ret;
+
+	indio_dev = devm_iio_device_alloc(&pdev->dev, sizeof(*gpadc));
  You can directly use *dev* instead of *&pdev->dev*
Yes agreed. Can follow up with change for this as it's not urgent and would
rather leave current patch set as is.
N�����r��y���b�X��ǧv�^�)޺{.n�+���z��z��z)���w*jg���
�����ݢj.�۰\��M��gj��a����' ��ޢ�
���j:+v���w�j�m��������zZ+�����ݢj"��!�i
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help