Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1265654 > unrolled thread

Re: [PATCH 20/26] Input: synaptics-rmi4: Create common functions for 2D sensors

Started byLinus Walleij <linus.walleij@linaro.org>
First post2015-11-09 14:30 +0100
Last post2015-11-09 14:30 +0100
Articles 1 — 1 participant

Back to article view | Back to linux.kernel

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  Re: [PATCH 20/26] Input: synaptics-rmi4: Create common functions for  2D sensors Linus Walleij <linus.walleij@linaro.org> - 2015-11-09 14:30 +0100

#1265654 — Re: [PATCH 20/26] Input: synaptics-rmi4: Create common functions for 2D sensors

FromLinus Walleij <linus.walleij@linaro.org>
Date2015-11-09 14:30 +0100
SubjectRe: [PATCH 20/26] Input: synaptics-rmi4: Create common functions for 2D sensors
Message-ID<qsUGe-6X1-5@gated-at.bofh.it>
On Fri, Nov 6, 2015 at 12:42 AM, Andrew Duggan <aduggan@synaptics.com> wrote:

> RMI4 defines two functions for 2D sensors. This patch moves some of the
> code which is shared between the two functions into a new file to avoid
> duplicating the code on rmi_f11.c and rmi_f12.c.
>
> Signed-off-by: Andrew Duggan <aduggan@synaptics.com>

>  .../bindings/input/rmi4/rmi_2d_sensor.txt          |  55 +++

Split off and send to devicetree@vger.kernel.org
I see you augmented the binding as I wanted it so:
Reviewed-by: Linus Walleij <linus.walleij@linaro.org>

>  drivers/input/rmi4/Kconfig                         |  11 +
>  drivers/input/rmi4/Makefile                        |   2 +
>  drivers/input/rmi4/rmi_2d_sensor.c                 | 370 ++++++++++++++++
>  drivers/input/rmi4/rmi_2d_sensor.h                 |  87 ++++
>  drivers/input/rmi4/rmi_f11.c                       | 487 +++++----------------
>  include/linux/rmi.h                                |  30 +-

Should this be squashed into the F11 and F12 driver patches and a big
F11+F12 patch come out instead? I think that is the best.

> +config RMI4_2D_SENSOR
> +       bool "RMI4 2D Sensors"
> +       depends on RMI4_CORE
> +       default y if RMI4_CORE
> +       help
> +         Say Y here if you want to add support for 2D Sensors.
> +
> +         Provides core functionality for 2D multifinger pointing for
> +         touchscreens and touchpads using RMI4 functions 11 and 12. This
> +         feature is needed is the device contains either F11 or F12.
> +
>  config RMI4_F11
>         bool "RMI4 Function 11 (2D pointing)"
>         depends on RMI4_CORE

Shouldn't F11 and F12 depend on RMI4_2D_SENSOR, or even select
it?

I think RMI4_2D_SENSOR should be hidden, i.e. just:

> +config RMI4_2D_SENSOR
> +       bool
> +       depends on RMI4_CORE

And then F11 and F12 select this hidden option.

Yours,
Linus Walleij
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[toc] | [standalone]


Back to top | Article view | linux.kernel


csiph-web