From: Gabriele Mazzotta <gabriele.mzt@gmail.com>
To: jic23@kernel.org
Cc: knaack.h@gmx.de, lars@metafoo.de, pmeerw@pmeerw.net,
marxin.liska@gmail.com, marex@denx.de, rui.zhang@intel.com,
linux-kernel@vger.kernel.org, linux-iio@vger.kernel.org,
daniel.baluta@gmail.com,
Gabriele Mazzotta <gabriele.mzt@gmail.com>
Subject: [PATCH] iio: acpi-als: Fix Kconfig and remove unneeded pointer casting
Date: Sat, 9 May 2015 21:30:58 +0200 [thread overview]
Message-ID: <1431199858-8066-1-git-send-email-gabriele.mzt@gmail.com> (raw)
In-Reply-To: <1430569857-31386-1-git-send-email-gabriele.mzt@gmail.com>
Signed-off-by: Gabriele Mazzotta <gabriele.mzt@gmail.com>
---
This patch fixes the issues of:
[PATCH v9] iio: acpi: Add support for ACPI0008 Ambient Light Sensor
Link: http://lkml.kernel.org/g/1430569857-31386-1-git-send-email-gabriele.mzt@gmail.com
drivers/iio/light/Kconfig | 1 +
drivers/iio/light/acpi-als.c | 3 +--
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/iio/light/Kconfig b/drivers/iio/light/Kconfig
index 898b2b5..fecd743 100644
--- a/drivers/iio/light/Kconfig
+++ b/drivers/iio/light/Kconfig
@@ -8,6 +8,7 @@ menu "Light sensors"
config ACPI_ALS
tristate "ACPI Ambient Light Sensor"
depends on ACPI
+ select IIO_BUFFER
select IIO_TRIGGERED_BUFFER
select IIO_KFIFO_BUF
help
diff --git a/drivers/iio/light/acpi-als.c b/drivers/iio/light/acpi-als.c
index 9839c9a..1dafa07 100644
--- a/drivers/iio/light/acpi-als.c
+++ b/drivers/iio/light/acpi-als.c
@@ -138,8 +138,7 @@ static void acpi_als_notify(struct acpi_device *device, u32 event)
goto out;
}
- iio_push_to_buffers_with_timestamp(indio_dev,
- (u8 *)als->evt_buffer, time_ns);
+ iio_push_to_buffers_with_timestamp(indio_dev, als->evt_buffer, time_ns);
out:
mutex_unlock(&als->lock);
--
2.1.4
next prev parent reply other threads:[~2015-05-09 19:30 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-05-02 12:30 [PATCH v9] iio: acpi: Add support for ACPI0008 Ambient Light Sensor Gabriele Mazzotta
2015-05-08 14:58 ` Jonathan Cameron
2015-05-08 19:20 ` Gabriele Mazzotta
2015-05-08 21:34 ` Jonathan Cameron
2015-05-08 21:36 ` Marek Vasut
2015-05-09 18:45 ` Gabriele Mazzotta
2015-05-09 19:10 ` Daniel Baluta
2015-05-09 19:30 ` Gabriele Mazzotta [this message]
2015-05-10 19:28 ` [PATCH] iio: acpi-als: Fix Kconfig and remove unneeded pointer casting Jonathan Cameron
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1431199858-8066-1-git-send-email-gabriele.mzt@gmail.com \
--to=gabriele.mzt@gmail.com \
--cc=daniel.baluta@gmail.com \
--cc=jic23@kernel.org \
--cc=knaack.h@gmx.de \
--cc=lars@metafoo.de \
--cc=linux-iio@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=marex@denx.de \
--cc=marxin.liska@gmail.com \
--cc=pmeerw@pmeerw.net \
--cc=rui.zhang@intel.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox