All of lore.kernel.org
 help / color / mirror / Atom feed
* Re: [PATCH v5 2/2] Input: cros-ec-keyb - Expose function row physical map to userspace
@ 2021-01-14  5:46 kernel test robot
  2021-01-14  5:46 ` [PATCH] Input: fix kobj_to_dev.cocci warnings kernel test robot
  0 siblings, 1 reply; 5+ messages in thread
From: kernel test robot @ 2021-01-14  5:46 UTC (permalink / raw)
  To: kbuild

[-- Attachment #1: Type: text/plain, Size: 1969 bytes --]

CC: kbuild-all(a)lists.01.org
In-Reply-To: <20210113172450.v5.2.I38e90f114f0311b8aa3bcfff750ba381c09dd3b6@changeid>
References: <20210113172450.v5.2.I38e90f114f0311b8aa3bcfff750ba381c09dd3b6(a)changeid>
TO: Philip Chen <philipchen@chromium.org>
TO: LKML <linux-kernel@vger.kernel.org>
TO: dmitry.torokhov(a)gmail.com
CC: dianders(a)chromium.org
CC: swboyd(a)chromium.org
CC: Philip Chen <philipchen@chromium.org>
CC: Benson Leung <bleung@chromium.org>
CC: Enric Balletbo i Serra <enric.balletbo@collabora.com>
CC: Guenter Roeck <groeck@chromium.org>
CC: Lee Jones <lee.jones@linaro.org>
CC: Rajat Jain <rajatja@google.com>

Hi Philip,

Thank you for the patch! Perhaps something to improve:

[auto build test WARNING on linus/master]
[also build test WARNING on v5.11-rc3 next-20210113]
[cannot apply to input/next linux/master chrome-platform-linux/for-next]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch]

url:    https://github.com/0day-ci/linux/commits/Philip-Chen/dt-bindings-input-cros-ec-keyb-Add-a-new-property/20210114-094548
base:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git 65f0d2414b7079556fbbcc070b3d1c9f9587606d
:::::: branch date: 4 hours ago
:::::: commit date: 4 hours ago
config: i386-randconfig-c001-20210114 (attached as .config)
compiler: gcc-9 (Debian 9.3.0-15) 9.3.0

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>
Reported-by: Julia Lawall <julia.lawall@lip6.fr>


"coccinelle warnings: (new ones prefixed by >>)"
>> drivers/input/keyboard/cros_ec_keyb.c:644:60-61: WARNING opportunity for kobj_to_dev()

Please review and possibly fold the followup patch.

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org

[-- Attachment #2: config.gz --]
[-- Type: application/gzip, Size: 33818 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread
* [PATCH v5 1/2] dt-bindings: input: cros-ec-keyb: Add a new property
@ 2021-01-14  1:25 Philip Chen
  2021-01-14  1:25 ` [PATCH v5 2/2] Input: cros-ec-keyb - Expose function row physical map to userspace Philip Chen
  0 siblings, 1 reply; 5+ messages in thread
From: Philip Chen @ 2021-01-14  1:25 UTC (permalink / raw)
  To: LKML, dmitry.torokhov
  Cc: dianders, swboyd, Philip Chen, Benson Leung,
	Enric Balletbo i Serra, Guenter Roeck, Rob Herring, Simon Glass,
	devicetree, linux-input

This patch adds a new property `function-row-physmap` to the
device tree for the custom keyboard top row design.

The property describes the rows/columns of the top row keys
from left to right.

Signed-off-by: Philip Chen <philipchen@chromium.org>
---

Changes in v5:
- add minItems and maxItems for `function-row-physmap`

Changes in v2:
- add `function-row-physmap` instead of `google,custom-keyb-top-row`

 .../bindings/input/google,cros-ec-keyb.yaml          | 12 ++++++++++++
 1 file changed, 12 insertions(+)

diff --git a/Documentation/devicetree/bindings/input/google,cros-ec-keyb.yaml b/Documentation/devicetree/bindings/input/google,cros-ec-keyb.yaml
index 8e50c14a9d778..e573ef3e58b65 100644
--- a/Documentation/devicetree/bindings/input/google,cros-ec-keyb.yaml
+++ b/Documentation/devicetree/bindings/input/google,cros-ec-keyb.yaml
@@ -31,6 +31,18 @@ properties:
       if the EC does not have its own logic or hardware for this.
     type: boolean
 
+  function-row-physmap:
+    $ref: '/schemas/types.yaml#/definitions/uint32-array'
+    minItems: 1
+    maxItems: 15
+    description: |
+      An ordered u32 array describing the rows/columns (in the scan matrix)
+      of top row keys from physical left (KEY_F1) to right. Each entry
+      encodes the row/column as:
+      (((row) & 0xFF) << 24) | (((column) & 0xFF) << 16)
+      where the lower 16 bits are reserved. This property is specified only
+      when the keyboard has a custom design for the top row keys.
+
 required:
   - compatible
 
-- 
2.26.2


^ permalink raw reply related	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2021-01-15  2:33 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-01-14  5:46 [PATCH v5 2/2] Input: cros-ec-keyb - Expose function row physical map to userspace kernel test robot
2021-01-14  5:46 ` [PATCH] Input: fix kobj_to_dev.cocci warnings kernel test robot
  -- strict thread matches above, loose matches on Subject: below --
2021-01-14  1:25 [PATCH v5 1/2] dt-bindings: input: cros-ec-keyb: Add a new property Philip Chen
2021-01-14  1:25 ` [PATCH v5 2/2] Input: cros-ec-keyb - Expose function row physical map to userspace Philip Chen
2021-01-14  1:36   ` Stephen Boyd
2021-01-15  2:32     ` Philip Chen

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.