Hi Christophe,
On Sun, Sep 08, 2024 at 08:52:07AM GMT, Christophe JAILLET wrote:
> 'struct i2c_algorithm' and 'struct virtio_device_id' are not modified in
> this driver.
>
> Constifying this structure moves some data to a read-only section, so
> increase overall security, especially when the str
Hi Wolfram,
On Fri, Jul 12, 2024 at 08:34:11AM GMT, Wolfram Sang wrote:
> On Fri, Jul 12, 2024 at 01:19:24AM +0200, Andi Shyti wrote:
> > Hi,
> >
> > while reviewing Wolfram's series, I received some delivery
> > failure notifications for e-mails that don
alizat...@lists.linux.dev
Andi Shyti (2):
MAINTAINERS: i2c-virtio: Drop Conghui Chen from Maintainers
MAINTAINERS: Drop Thor Thayer from maintainers
MAINTAINERS | 13 ++---
1 file changed, 2 insertions(+), 11 deletions(-)
--
2.45.2
E-mails to Conghui Chen have bounced back:
: host mgamail.eglb.intel.com[198.175.65.14] said: 550
#5.1.0 Address rejected. (in reply to RCPT TO command)
Remove him as maintainer of the i2c Virtio driver in the
MAINTAINERS file.
Signed-off-by: Andi Shyti
Cc: Viresh Kumar
Cc: Wolfram
Hi Wolfram,
pushed in i2c/i2c-host.
Thanks for this big work, at the end it turned out quite nice and
I'm happy of the outcome!
Thanks
Andi
On Sat, Jul 06, 2024 at 01:20:00PM GMT, Wolfram Sang wrote:
> Start changing the wording of the I2C main header wrt. the newest I2C
> v7 and SMBus 3.2 spec
Hi Wolfram,
On Sat, Jul 06, 2024 at 01:20:58PM GMT, Wolfram Sang wrote:
> Change the wording of this driver wrt. the newest I2C v7 and SMBus 3.2
> specifications and replace "master/slave" with more appropriate terms.
>
> Signed-off-by: Wolfram Sang
Reviewed-by: Andi Shyti
Thanks,
Andi
Hi Wolfram,
> > @Andi: are you okay with this approach? It means you'd need to merge
> > -rc2 into your for-next branch. Or rebase if all fails.
>
> I think it's a good plan, I'll try to support you with it.
Do you feel more comfortable if I take the patches as soon as
they are reviewd?
So far
Hi Wolfram,
On Fri, Mar 22, 2024 at 02:24:53PM +0100, Wolfram Sang wrote:
> Okay, we need to begin somewhere...
>
> Start changing the wording of the I2C main header wrt. the newest I2C
> v7, SMBus 3.2, I3C specifications and replace "master/slave" with more
> appropriate terms. This first step r
Hi Wuqiang,
On Tue, Nov 21, 2023 at 10:23:43PM +0800, wuqiang.matt wrote:
> arch_cmpxchg() should check data size rather than pointer size in case
> CONFIG_ARC_HAS_LLSC is defined. So rename __cmpxchg to __cmpxchg_32 to
> emphasize it's explicit support of 32bit data size with BUILD_BUG_ON()
> add
support for the Samsung S6SY761
> touchscreen")
> Signed-off-by: Caleb Connolly
Reviewed-by: Andi Shyti
Thanks,
Andi
[2] << 3) | (event[3] & S6SY761_MASK_Y);
> + u16 x = (event[1] << 4) | ((event[3] & S6SY761_MASK_X) >> 4);
> + u16 y = (event[2] << 4) | (event[3] & S6SY761_MASK_Y);
the devil knows how that '3' has ended up there :)
Thanks for catching it!
Reviewed-by: Andi Shyti
Andi
creen")
> Signed-off-by: YueHaibing
Reviewed-by: Andi Shyti
Thanks,
Andi
27;
>
> Signed-off-by: Krzysztof Kozlowski
thanks,
Acked-by: Andi Shyti
Andi
t;
> > > - int err;
> > > + int err = 0;
> >
> > you don't need the initialization here.
>
> But it's close enough that I can munge the patch inline.
> Reviewed-by: Chris Wilson
sure... you can also remove it before merging it and it migh
Hi Tianjia,
> diff --git a/drivers/gpu/drm/i915/i915_active.c
> b/drivers/gpu/drm/i915/i915_active.c
> index d960d0be5bd2..cc017e3cc9c5 100644
> --- a/drivers/gpu/drm/i915/i915_active.c
> +++ b/drivers/gpu/drm/i915/i915_active.c
> @@ -758,7 +758,7 @@ int i915_active_acquire_preallocate_barrier(st
Hi Sultan,
> > > > so the only strategy available up until now has been to always retrieve
> > > > the maximum possible report length over i2c, which can be quite
> > > > inefficient. For devices that send reports in block read format, the i2c
> > > > controller driver can read the payload length
Hi Andy,
> > so the only strategy available up until now has been to always retrieve
> > the maximum possible report length over i2c, which can be quite
> > inefficient. For devices that send reports in block read format, the i2c
> > controller driver can read the payload length on the fly and ter
Hi Dmitry,
> > > > There was a related patch [2] that removes I2C_M_NOSTART for all models,
> > > > but it seems abandoned and I do not have any other model for testing.
> > > > Therefore, this patch implements the least instrusive solution
> > > > and only removes I2C_M_NOSTART for MMS345L.
> > >
Hi Stephan,
> > > There was a related patch [2] that removes I2C_M_NOSTART for all models,
> > > but it seems abandoned and I do not have any other model for testing.
> > > Therefore, this patch implements the least instrusive solution
> > > and only removes I2C_M_NOSTART for MMS345L.
> >
> > Hmm
Hi Dmitry,
> > There was a related patch [2] that removes I2C_M_NOSTART for all models,
> > but it seems abandoned and I do not have any other model for testing.
> > Therefore, this patch implements the least instrusive solution
> > and only removes I2C_M_NOSTART for MMS345L.
>
> Hmm, at this po
> > - if (!i2c_check_functionality(client->adapter,
> > - I2C_FUNC_PROTOCOL_MANGLING)) {
> > + type = (enum mms_type)device_get_match_data(&client->dev);
>
> you don't need any cast here.
sorry, please ignore :)
Andi
Hi Stephan,
> device_get_match_data is available now, so we can replace the call
> to of_device_get_match_data and remove the FIXME comment.
>
> Signed-off-by: Stephan Gerhold
Reviewed-by: Andi Shyti
Thanks,
Andi
Hi Stephan,
On Mon, Oct 07, 2019 at 10:33:42PM +0200, Stephan Gerhold wrote:
> The mms114 driver now supports MMS345L; document the
> melfas,mms345l binding that is used for it.
>
> Signed-off-by: Stephan Gerhold
Reviewed-by: Andi Shyti
Thanks,
Andi
bytes: NAK bailout.
> mms114 0-0048: __mms114_read_reg: i2c transfer failed (-5)
>
> The driver works fine as soon as I2C_M_NOSTART is removed.
>
> Add a separate melfas,mms345l binding, and make use of I2C_M_NOSTART
> only for MMS114 and MMS152.
>
> Signed-off-by:
Hi Yuehaibing,
> >> Use devm_platform_ioremap_resource() to simplify the code a bit.
> >> This is detected by coccinelle.
> >>
> >> Reported-by: Hulk Robot
> >
> > This tag does not look real... First of all where is the report?
>
> It is our internal CI robot, which is unavailable to external
Torokhov
same here:
Acked-by: Andi Shyti
Thanks,
Andi
c7b2ae1 ("Input: add support for the STMicroelectronics FingerTip
> touchscreen")
> Signed-off-by: Dmitry Torokhov
Acked-by: Andi Shyti
Thanks,
Hi Anson,
On Wed, Sep 05, 2018 at 05:26:46PM +0800, Anson Huang wrote:
> This patch adds wakeup function support for egalax touch
> screen, if "wakeup-source" is added to device tree's egalax
> touch screen node, the wakeup function will be enabled, and
> egalax touch screen will be able to wakeup
a typo here, other than that I agree with the patch:
Acked-by: Andi Shyti
Thanks,
Andi
Hi Colin,
On Tue, Aug 28, 2018 at 03:56:48PM +0100, Colin King wrote:
> From: Colin Ian King
>
> Pointer 'nb' is being assigned but is never used hence it is
'np' here. Other than that,
Reviewed-by: Andi Shyti
Andi
> redundant and can be removed.
>
&
Hi Derek,
next time, could you please avoid using html mails when replying
to the mailing list? They are not clear.
On Fri, Aug 24, 2018 at 04:07:41PM -0700, dbasehore . wrote:
>
>
> On Fri, Aug 24, 2018 at 1:49 AM Andi Shyti wrote:
>
> Hi Derek,
>
> > > &
Hi Derek,
> > > On Thu, Aug 23, 2018 at 04:10:13PM -0700, Derek Basehore wrote:
> > > > We only need to wait 10ms instead of 30ms before starting fastboot or
> > > > sending IAP on the touchscreen. Also, instead of delaying everytime
> > > > sw_reset is called, this delays 10ms in the function tha
Documentation/devicetree/bindings/input/touchscreen/mms114.txt
[2] Documentation/devicetree/bindings/input/touchscreen/touchscreen.txt
Signed-off-by: Andi Shyti
---
arch/arm/boot/dts/exynos4210-trats.dts | 4 ++--
arch/arm/boot/dts/exynos4412-galaxy-s3.dtsi | 4 ++--
2 files changed, 4 ins
Hi Philipp,
I had a fast look to your driver and I have few comments.
> .../bindings/input/touchscreen/ili251x.txt| 35 ++
> drivers/input/touchscreen/Kconfig | 12 +
> drivers/input/touchscreen/Makefile| 1 +
> drivers/input/touchscreen/ili251x.c | 350
From: Andi Shyti
Because I will be leaving Samsung soon, update my e-mail to the
etezian.org mail.
CC: Mauro Carvalho Chehab
CC: Sean Young
Signed-off-by: Andi Shyti
---
Hi Sean,
thanks for the review and sorry for the late reply. Here is the
patch with my mail changed also in the
Hi Dmitry,
I will send this two as a new patchset. The first one is the
messed SPDX patch that you reverted, the second one is about the
license incohorency that Marcus has pointed out.
Andi
Andi Shyti (2):
Input: mms114 - add SPDX identifier
Input: mms114 - fix license module information
81d4aff ("Input: add MELFAS mms114 touchscreen driver")
Reported-by: Marcus Folkesson
Signed-off-by: Andi Shyti
---
drivers/input/touchscreen/mms114.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/input/touchscreen/mms114.c
b/drivers/input/touchscre
Replace the original license statement with the SPDX identifier.
Add also one line of description as recommended by the COPYING
file.
Signed-off-by: Andi Shyti
---
drivers/input/touchscreen/mms114.c | 13 +
1 file changed, 5 insertions(+), 8 deletions(-)
diff --git a/drivers/input
Hi Dmitry,
> > > > > - * Copyright (C) 2012 Samsung Electronics Co.Ltd
> > > > > - * Author: Joonyoung Shim
> > > > > - *
> > > > > - * This program is free software; you can redistribute it and/or
> > > > > modify
> > > > > - * it under the terms of the GNU General Public License version 2 as
>
Hi Marcus,
> > > > - * Copyright (C) 2012 Samsung Electronics Co.Ltd
> > > > - * Author: Joonyoung Shim
> > > > - *
> > > > - * This program is free software; you can redistribute it and/or modify
> > > > - * it under the terms of the GNU General Public License version 2 as
> > > > - * published
Hi Dmitry,
> > -/*
> > - * Copyright (C) 2012 Samsung Electronics Co.Ltd
> > - * Author: Joonyoung Shim
> > - *
> > - * This program is free software; you can redistribute it and/or modify
> > - * it under the terms of the GNU General Public License version 2 as
> > - * published by the Free Soft
Hi Dmitry,
On Mon, Jan 29, 2018 at 03:33:35PM -0800, Dmitry Torokhov wrote:
> On Tue, Jan 30, 2018 at 08:29:23AM +0900, Andi Shyti wrote:
> > Hi Dmitry,
> >
> > On Mon, Jan 29, 2018 at 10:56:31AM -0800, Dmitry Torokhov wrote:
> > > On Mon, Jan 29, 2018 at 08:3
Hi Dmitry,
On Mon, Jan 29, 2018 at 10:56:31AM -0800, Dmitry Torokhov wrote:
> On Mon, Jan 29, 2018 at 08:33:20PM +0900, Andi Shyti wrote:
> > Signed-off-by: Andi Shyti
>
> But why?
I think this patch is trivial and the subject itself is quite
self-explanatory and the commit mes
Hi Dmitry,
On Mon, Jan 29, 2018 at 10:43:09AM -0800, Dmitry Torokhov wrote:
> On Mon, Jan 29, 2018 at 08:33:19PM +0900, Andi Shyti wrote:
> > '__packed' is not used anywhere, remove it.
>
> Umm, this is not a variable, this is type annotation meaning that the
> st
Hi Dmitry,
On Mon, Jan 29, 2018 at 11:01:41AM -0800, Dmitry Torokhov wrote:
> On Mon, Jan 29, 2018 at 08:33:17PM +0900, Andi Shyti wrote:
> > The 'mms114_read_reg' and 'mms114_write_reg' are used when
> > reading or writing to the 'MMS114_MOD
It's 'MMS114_INFORMATION', not 'MMS114_INFOMATION'
Signed-off-by: Andi Shyti
---
drivers/input/touchscreen/mms114.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/input/touchscreen/mms114.c
b/drivers/input/touchscreen/mms114.c
index 3
Signed-off-by: Andi Shyti
---
drivers/input/touchscreen/mms114.c | 10 +-
1 file changed, 5 insertions(+), 5 deletions(-)
diff --git a/drivers/input/touchscreen/mms114.c
b/drivers/input/touchscreen/mms114.c
index 11dba8bb48e3..fdf23bc416af 100644
--- a/drivers/input/touchscreen/mms114
Replace the original license statement with the SPDX identifier.
Signed-off-by: Andi Shyti
---
drivers/input/touchscreen/mms114.c | 13 +
1 file changed, 5 insertions(+), 8 deletions(-)
diff --git a/drivers/input/touchscreen/mms114.c
b/drivers/input/touchscreen/mms114.c
index
'__packed' is not used anywhere, remove it.
Signed-off-by: Andi Shyti
---
drivers/input/touchscreen/mms114.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/input/touchscreen/mms114.c
b/drivers/input/touchscreen/mms114.c
index fb4435ae506b..11dba8bb48e3 10
e use of
custom functions with the more standard smbus ones.
It's not possible only in one case, in the mms114_set_active()
function where the 'cache_mode_control' variable is updated
according to the value in the register 'MMS114_MODE_CONTROL'
register.
Signed-off-by:
Signed-off-by: Andi Shyti
---
drivers/input/touchscreen/mms114.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/input/touchscreen/mms114.c
b/drivers/input/touchscreen/mms114.c
index fdf23bc416af..d70c03adf148 100644
--- a/drivers/input/touchscreen/mms114.c
+++ b
200ms seconds is a very long time to keep the CPU busy looping.
Use msleep instead.
Signed-off-by: Andi Shyti
---
drivers/input/touchscreen/mms114.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/input/touchscreen/mms114.c
b/drivers/input/touchscreen/mms114.c
index
ction and get rid of all the custom i2c
read/write functions.
With this remove also the redundant sleep of MMS114_I2C_DELAY
(50us) between i2c operations. The waiting should to be handled
by the i2c driver.
Signed-off-by: Andi Shyti
---
drivers/input/touchscreen/mms114.c | 87 +--
the mms114 touchscreen in trats2, I
would appreaciate if Simon can test it on mms152.
Thanks,
Andi
Andi Shyti (8):
Input: mms114 - use smbus functions whenever possible
Input: mms114 - get read of custm i2c read/write functions
Input: mms114 - replace mdelay with msleep
Input: mms114 - rem
Documentation/devicetree/bindings/input/touchscreen/mms114.txt
[2] Documentation/devicetree/bindings/input/touchscreen/touchscreen.txt
Signed-off-by: Andi Shyti
---
Hi Krzysztof,
this patch depends on Simon's patchset [1] and must be applied after
that. If you want I can ping you when the pa
25841
> Signed-off-by: Dmitry Torokhov
also here
Reviewed-by: Andi Shyti
Tested-by: Andi Shyti
one small nitpick:
> @@ -239,14 +249,33 @@ static int mms114_get_version(struct mms114_data *data)
> {
> struct device *dev = &data->client->dev;
> u8 buf[6]
mitry Torokhov
yes, looks better. I'm happy you dropped the
(mms114_parse_dt(data) < 0).
Reviewed-by: Andi Shyti
Tested-by: Andi Shyti
Thanks,
Andi
> ---
> .../bindings/input/touchscreen/mms114.txt | 29 ++--
> drivers/input/touchscreen/mms114.c
d error handling for input_mt_init_slots().
>
> Signed-off-by: Dmitry Torokhov
Reviewed-by: Andi Shyti
Tested-by: Andi Shyti
Thanks,
Andi
Hi Dmitry,
On Wed, Jan 24, 2018 at 11:38:01AM -0800, Dmitry Torokhov wrote:
> Rely on the platform (device tree, ACPI, etc) to properly configure
> interrupt trigger/polarity instead of hardcoding the falling edge.
>
> Signed-off-by: Dmitry Torokhov
Reviewed-by: Andi Shyti
Tes
ore we disable
> interrupts/allocate memory for debug buffers.
>
> Fixes: fd335ab04b3f ("Input: edt-ft5x06 - add support for M09 firmware
> version")
> Signed-off-by: Dmitry Torokhov
makes sense!
Reviewed-by: Andi Shyti
Andi
> ---
> drivers/input/touchscreen/edt-ft5x
e.
>
> Signed-off-by: Markus Elfring
Acked-by: Andi Shyti
Thanks,
Andi
> ---
> drivers/input/touchscreen/edt-ft5x06.c | 4 +---
> 1 file changed, 1 insertion(+), 3 deletions(-)
>
> diff --git a/drivers/input/touchscreen/edt-ft5x06.c
> b/drivers/input/tou
Hi Dmitry,
On Fri, Jan 05, 2018 at 08:49:58AM -0800, Dmitry Torokhov wrote:
> Hi Andi,
>
> On Fri, Jan 05, 2018 at 06:57:15PM +0900, Andi Shyti wrote:
> > Hi Dmitry,
> >
> > this is a kind ping, would you also mind giving me a feedback to
>
> Yes, sorry. Cou
Hi Dmitry,
this is a kind ping, would you also mind giving me a feedback to
all the previous patches I sent?
Thanks,
Andi
On Tue, Dec 12, 2017 at 04:41:49PM +0900, Andi Shyti wrote:
> Replace the original license statement with the SPDX identifier.
>
> Update also the copyright own
encies. So this value could be
> set if the attached ir receiver needs a different base clock frequency,
> than the default 8 MHz.
>
> Signed-off-by: Philipp Rossak
feel free to add
Reviewed-by: Andi Shyti
Andi
Hi Philipp,
just a couple of small nitpicks.
> + u32 b_clk_freq;
[...]
> + /* Base clock frequency (optional) */
> + if (of_property_read_u32(dn, "clock-frequency", &b_clk_freq)) {
> + b_clk_freq = SUNXI_IR_BASE_CLK;
> + }
> +
how about you intialize 'b_clk_freq' to
Replace the original license statement with the SPDX identifier.
Signed-off-by: Andi Shyti
Reviewed-by: Krzysztof Kozlowski
---
Hi,
v2 to v3:
- move the SPDX identifier on top as a separate comment as per
documentation
- add Krzysztof's review
v1 to v2:
- keep the original license
Hi Philippe,
> > diff --git a/include/linux/platform_data/spi-s3c64xx.h
> > b/include/linux/platform_data/spi-s3c64xx.h
> > index da79774078a7..8917f38c97c5 100644
> > --- a/include/linux/platform_data/spi-s3c64xx.h
> > +++ b/include/linux/platform_data/spi-s3c64xx.h
> > @@ -2,9 +2,7 @@
> > * C
Replace the original license statement with the SPDX identifier.
Signed-off-by: Andi Shyti
---
Hi,
this second version unlike v1, where I tried to move the license
from GPLv2+ to GPLv2, preserves the original licese while adding
the SPDX identifier.
Andi
drivers/spi/spi-s3c64xx.c
Hi Krzysztof,
> > Here, this should be as a top line:
> >
> > // SPDX-License-Identifier: GPL-2.0+
> >
> >
> > So I agree with the SPDX id but also pointing to the use of the C++ //
> > comment style as requested by Linus [1]
>
> Thanks for the reference. I see that Linus prefers converting entir
Hi Krzysztof,
> > - * Copyright (C) 2009 Samsung Electronics Ltd.
> > - * Jaswinder Singh
> > - *
> > - * This program is free software; you can redistribute it and/or modify
> > - * it under the terms of the GNU General Public License as published by
> > - * the Free Software Foundation; eit
Replace the original license statement with the SPDX identifier.
Signed-off-by: Andi Shyti
---
drivers/spi/spi-s3c64xx.c | 18 --
include/linux/platform_data/spi-s3c64xx.h | 4 +---
2 files changed, 5 insertions(+), 17 deletions(-)
diff --git a/drivers/spi/spi
Replace the original license statement with the SPDX identifier.
Update also the copyright owner adding myself as co-owner of the
copyright.
Signed-off-by: Andi Shyti
---
drivers/media/rc/ir-spi.c | 15 +--
1 file changed, 5 insertions(+), 10 deletions(-)
diff --git a/drivers
Replace the original license statement with the SPDX identifier.
Update also the copyright owner adding myself as co-owner of the
copyright.
Signed-off-by: Andi Shyti
---
drivers/input/touchscreen/s6sy761.c | 15 +--
drivers/input/touchscreen/stmfts.c | 15 +--
2 files
Use managed allocated resources to simplify error handling during
probing.
Adjust goto labels and remove function accordingly.
Signed-off-by: Andi Shyti
---
drivers/input/touchscreen/ili210x.c | 36 +++-
1 file changed, 11 insertions(+), 25 deletions(-)
diff
Split the error between devm_kzalloc and
devm_input_allocate_device, there is no need to call the second
allocator if the first has failed. Besides this doesn't provide
practical advantages.
Signed-off-by: Andi Shyti
---
drivers/input/touchscreen/ili210x.c | 5 -
1 file chang
Hi Dmitry,
this is another patch of my series for switching the
touchscreen drivers to to the managed resource allocators.
The second patch is very trivial and perhaps bothering only me,
feel free to ignore.
Thanks,
Andi
Andi Shyti (2):
Input: ili210x - use managed allocated resources
> On Wed, Nov 08, 2017 at 05:21:03PM +0900, Andi Shyti wrote:
> > Hi,
> >
> > This patchset adds support for the Samsung s6sy761 touchscreen.
> >
> > Thanks,
> > Andi
>
> Applied, thank you.
Thanks for your review :)
Andi
Use managed allocated resources to simplify error handling during
probing.
Fix goto labels and remove function accordingly.
Signed-off-by: Andi Shyti
---
drivers/input/touchscreen/ads7846.c | 103 ++--
1 file changed, 28 insertions(+), 75 deletions(-)
diff
g to the managed
resource allocation
- removed the remove() function and used
devm_add_action_or_reset for cleaning when exiting
[1] https://marc.info/?l=linux-input&m=150671805312148&w=2
[2] https://marc.info/?l=linux-kernel&m=151015513508504&w=2
Andi Shyti (3):
Input
Split the error between devm_kzalloc and
devm_input_allocate_device, there is no need to call the second
allocator if the first has failed. Besides this doesn't provide
practical advantages.
CC: Michael Hennerich
Signed-off-by: Andi Shyti
---
drivers/input/touchscreen/ad7877.c | 5 +++
Use the ad7877_disable() as a custom action when the driver gets
removed instead of calling it from the remove function.
Because ad7877_remove() was just calling the disable function,
get rid of it.
CC: Michael Hennerich
Signed-off-by: Andi Shyti
---
drivers/input/touchscreen/ad7877.c | 20
Use managed allocated resources to simplify error handling during
probing failure and module exiting.
With this all the goto labels in the probe function together with
the cleanups in the remove function are unnecessary, therefore
removed.
CC: Michael Hennerich
Signed-off-by: Andi Shyti
> > - ts = kzalloc(sizeof(struct ad7877), GFP_KERNEL);
> > - input_dev = input_allocate_device();
> > - if (!ts || !input_dev) {
> > - err = -ENOMEM;
> > - goto err_free_mem;
> > - }
> > + ts = devm_kzalloc(&spi->dev, sizeof(struct ad7877), GFP_KERNEL);
> > + input_d
Split the error between devm_kzalloc and
devm_input_allocate_device, there is no need to call the second
allocator if the first has failed. Besides this doesn't provide
practical advantages.
CC: Michael Hennerich
Signed-off-by: Andi Shyti
---
drivers/input/touchscreen/ad7877.c | 3 +++
1
Use the ad7877_disable() as a custom action when the driver gets
removed instead of calling it from the remove function.
Because ad7877_remove() was just calling the disable function,
get rid of it.
CC: Michael Hennerich
Signed-off-by: Andi Shyti
---
drivers/input/touchscreen/ad7877.c | 20
Use managed allocated resources to simplify error handling during
probing failure and module exiting.
With this all the goto labels in the probe function together with
the cleanups in the remove function are unnecessary, therefore
removed.
CC: Michael Hennerich
Signed-off-by: Andi Shyti
unction and used
devm_add_action_or_reset for cleaning when exiting
Andi Shyti (3):
Input: ad7897 - use managed allocated resources
Input: ad7897 - use devm_add_action_or_reset to disable the device
Input: ad7897 - use separate error handling for different allocators
drivers/input/touchscre
h, in the version
I currently have, doesn't provide all the possible
functionalities mentioned in the datasheet.
Signed-off-by: Andi Shyti
---
drivers/input/touchscreen/Kconfig | 11 +
drivers/input/touchscreen/Makefile | 1 +
drivers/input/touchscreen/s6sy7
ce works only in two modes and therefore
'prev_pm_state' is not required any longer.
v1 - v2
- remove the low power functionality as it doesn't bring any
benefit
- use get_unaligned_be16 instead of the form 'a << 8 | b'
- use max_t instead of '? :'
-
Add the binding file for the Samsung capacitive multi-touch
touchscreen S6SY761.
Signed-off-by: Andi Shyti
Acked-by: Rob Herring
---
.../bindings/input/touchscreen/samsung,s6sy761.txt | 34 ++
1 file changed, 34 insertions(+)
create mode 100644
Documentation/devicetree
to reject it.
Thanks,
Andi
[*] https://marc.info/?l=linux-input&m=150671805312148&w=2
Andi Shyti (5):
Input: ad7897 - use managed devm_kzalloc
Input: ad7897 - use managed devm_input_allocate_device
Input: ad7897 - use managed devm_request_threaded_irq
Input: ad7897 - use
Split the error between devm_kzalloc and
devm_input_allocate_device, there is no need to call the second
allocator if the first has failed. Besides this doesn't provide
practical advantages.
CC: Michael Hennerich
Signed-off-by: Andi Shyti
---
drivers/input/touchscreen/ad7877.c | 3 +++
1
Request the interrupt by using its related managed
devm_request_threaded_irq function, remove the cleanup function
calls and adjust the goto error handlings accordingly.
CC: Michael Hennerich
Signed-off-by: Andi Shyti
---
drivers/input/touchscreen/ad7877.c | 7 ++-
1 file changed, 2
Allocate the input device by using the devm_input_allocate_device
function and remove all the related cleanup function and adjust
the goto error handlings accordingly.
CC: Michael Hennerich
Signed-off-by: Andi Shyti
---
drivers/input/touchscreen/ad7877.c | 18 ++
1 file changed
Allocate the driver's structure by using devm_kzalloc instead of
simple kzalloc and remove all the related kfree calls.
CC: Michael Hennerich
Signed-off-by: Andi Shyti
---
drivers/input/touchscreen/ad7877.c | 6 ++
1 file changed, 2 insertions(+), 4 deletions(-)
diff --git a/drivers/
ned-off-by: Andi Shyti
---
drivers/input/touchscreen/ad7877.c | 15 ++-
1 file changed, 2 insertions(+), 13 deletions(-)
diff --git a/drivers/input/touchscreen/ad7877.c
b/drivers/input/touchscreen/ad7877.c
index 3a4230219b23..c8a143db8681 100644
--- a/drivers/input/touchscreen/ad78
h, in the version
I currently have, doesn't provide all the possible
functionalities mentioned in the datasheet.
Signed-off-by: Andi Shyti
---
drivers/input/touchscreen/Kconfig | 11 +
drivers/input/touchscreen/Makefile | 1 +
drivers/input/touchscreen/s6sy7
Add the binding file for the Samsung capacitive multi-touch
touchscreen S6SY761.
Signed-off-by: Andi Shyti
Acked-by: Rob Herring
---
.../bindings/input/touchscreen/samsung,s6sy761.txt | 34 ++
1 file changed, 34 insertions(+)
create mode 100644
Documentation/devicetree
'
- use max_t instead of '? :'
- use managed 'devm_device_add_group()'
Andi Shyti (2):
dt-bindings: Input: add Samsung S6SY761 touchscreen binding file
Input: add support for the Samsung S6SY761 touchscreen
.../bindings/input/touchscreen/samsung,s6sy761.txt | 34 ++
dr
the relative sysfs_remove_group and goto label.
> >
> > CC: Michael Hennerich
> > Signed-off-by: Andi Shyti
> > ---
> > drivers/input/touchscreen/ad7877.c | 8 ++--
> > 1 file changed, 2 insertions(+), 6 deletions(-)
> >
> > diff --git a/drive
1 - 100 of 499 matches
Mail list logo