From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753365AbdDCP6x (ORCPT ); Mon, 3 Apr 2017 11:58:53 -0400 Received: from mail.free-electrons.com ([62.4.15.54]:38270 "EHLO mail.free-electrons.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751515AbdDCP6w (ORCPT ); Mon, 3 Apr 2017 11:58:52 -0400 Date: Mon, 3 Apr 2017 17:58:40 +0200 From: Alexandre Belloni To: Ludovic Desroches Cc: linux-input@vger.kernel.org, linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, dmitry.torokhov@gmail.com, nicolas.ferre@microchip.com, linux-kernel@vger.kernel.org, Ludovic Desroches Subject: Re: [PATCH 1/4] input: misc: introduce Atmel PTC driver Message-ID: <20170403155840.vln4wg56iunrmdcw@piout.net> References: <20170331152250.12758-1-ludovic.desroches@microchip.com> <20170331152250.12758-2-ludovic.desroches@microchip.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20170331152250.12758-2-ludovic.desroches@microchip.com> User-Agent: NeoMutt/20170113 (1.7.2) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 31/03/2017 at 17:22:47 +0200, Ludovic Desroches wrote: > From: Ludovic Desroches I think you probably want to switch to your microchip email. Also, this requires a proper commit message. > > Signed-off-by: Ludovic Desroches > +struct atmel_ptc { > + void __iomem *ppp_regs; > + void __iomem *firmware; > + int irq; > + uint8_t imr; > + volatile struct atmel_qtm_mailbox __iomem *qtm_mb; > + struct clk *clk_per; > + struct clk *clk_int_osc; > + struct clk *clk_slow; > + struct device *dev; > + struct completion ppp_ack; > + unsigned int button_keycode[ATMEL_PTC_MAX_NODES]; > + struct input_dev *buttons_input; > + struct input_dev *scroller_input[ATMEL_PTC_MAX_SCROLLERS]; > + bool buttons_registered; > + bool scroller_registered[ATMEL_PTC_MAX_SCROLLERS]; > + uint32_t button_event[ATMEL_PTC_MAX_NODES/32]; > + uint32_t button_state[ATMEL_PTC_MAX_NODES/32]; > + uint32_t scroller_event; > + uint32_t scroller_state; You should use u8, u16 and u32 instead of uint8_t, uint16_t and uint32_t. > diff --git a/include/uapi/linux/atmel_ptc.h b/include/uapi/linux/atmel_ptc.h > new file mode 100644 > index 0000000..d15c4df > --- /dev/null > +++ b/include/uapi/linux/atmel_ptc.h Is there any sample application showing how to configure the PTC? -- Alexandre Belloni, Free Electrons Embedded Linux and Kernel engineering http://free-electrons.com