Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp2492605yba; Mon, 15 Apr 2019 12:50:10 -0700 (PDT) X-Google-Smtp-Source: APXvYqxyPi70z1KTrW/9KbrYEwI/PH6wtUNfrMpvAuNzPfqMemwlBBs1MEbp6/i+aoNTglh9Zhui X-Received: by 2002:a17:902:442:: with SMTP id 60mr78192594ple.107.1555357810740; Mon, 15 Apr 2019 12:50:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1555357810; cv=none; d=google.com; s=arc-20160816; b=T/FvJgUUuVJtiu5MmnEVBk7hO2gTS3Q2bXQkA1j8Gt01WeJ2eHa1LHMrwU2uOJcvt8 cyfZwddfEsH/3SAp3QLYcpX22W9ztijDwirWxvj5Xrz+wd/7U8muL0+NrCBShO0WIB96 PbE79nzHVK07XvtnvZ6cSf+z50M/uqHizz6Vt4glC69Unh5r4iu6pmK+Gsdky/Qo1+GZ gtfbFDyziC1ewm32TotZ4oVKgXMj2y1PuI0Dqi3wMB8XO63Y2JvHvgfTcRL69w8YUYru MatouAIfJWJzAst6Ov54JVHaCWuym5wf/gZN8mKZkkJg0muI1KhV5PgfiUfyapq5V2Vj PL5A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version; bh=g/C3t9rgSuWq5OKRvtxUz/xWegl3UdthgeHpxahk+9Q=; b=y3CQHPS1mHFT8xelo9IvHnXBdIulrOu+Od13uxZCYvypGa/8LKbTXR/mAfZtt2YQp2 bOGyEX/o6RV971Qed9njoye2rFrBqwjQb0v+Dlc7JCFGhXZXF+ijm4Huj3g0xGZIoRfC FdcnwZvYcSTcTO7KtA7QQ23WPPoTL/5hY/ZYX134NgjOq9TfgbGTPCnqZ7Cz169nVpoW yRc+yIJ7XUsRVuugrmIpKmecuT943p83mIRLA8kIsmF66goSzhytN3g9sfxb0otnuI/M V3vpGgRwLsWOc7vpTOz6TmUlGyQdzFP3J+T7XmJ0Ya8rjprbJcceDBJ6dOug3qH+455V wOsg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id d14si35153923pgv.454.2019.04.15.12.49.54; Mon, 15 Apr 2019 12:50:10 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728774AbfDOTrr (ORCPT + 99 others); Mon, 15 Apr 2019 15:47:47 -0400 Received: from mail-qt1-f193.google.com ([209.85.160.193]:43108 "EHLO mail-qt1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728305AbfDOTrr (ORCPT ); Mon, 15 Apr 2019 15:47:47 -0400 Received: by mail-qt1-f193.google.com with SMTP id v32so20584617qtc.10; Mon, 15 Apr 2019 12:47:46 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=g/C3t9rgSuWq5OKRvtxUz/xWegl3UdthgeHpxahk+9Q=; b=B/MHFvBES3sK1xXZDLW8Gjec+xjKrvW9WyBzIYCeBy5HKUeL5WvSCM12As2U12jb7P KUuUw5bBBqyy0Hdek+vdfoJLR4DQgOw3Mod8N0fAW/B66L7XqovbZIe+WYmdWTI3zrhZ FenmO43xKpU+3C3O1OvvXCO855uejwDuwcRsj7kTqTbxKe+P6prvrUIXkrnY5HKrKaOx bFyP/7KmdTRq9Zyf4+9pXvB+VlanNiIr3TKL5ruNbxdnmibl3P5wMxSNfiXc6XPgiWsI hhmbDjQ2g5p9QEuLjCpRs451L5DhV0nUZUMo1nS11ipi6fOs/ZK3nk716BY8KhwIDC2/ AdrQ== X-Gm-Message-State: APjAAAVJn3qG4n4yzNJQGmChWs8wmdKw11Bq2J/D/SqUCw4lo1efuxvR /twM894DUNSK4oqI9KdMSI11bAfHCIbLFCRRlQ8= X-Received: by 2002:a0c:9dcb:: with SMTP id p11mr61785825qvf.28.1555357666114; Mon, 15 Apr 2019 12:47:46 -0700 (PDT) MIME-Version: 1.0 References: <20190415192734.935387-1-arnd@arndb.de> <20190415192734.935387-2-arnd@arndb.de> In-Reply-To: From: Arnd Bergmann Date: Mon, 15 Apr 2019 21:47:29 +0200 Message-ID: Subject: Re: [PATCH 2/4] ARM: ep93xx: keypad: stop using mach/platform.h To: Hartley Sweeten Cc: Alexander Sverdlin , Linus Walleij , Dmitry Torokhov , Stefan Agner , Enric Balletbo i Serra , Guenter Roeck , "linux-input@vger.kernel.org" , "linux-kernel@vger.kernel.org" Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Apr 15, 2019 at 9:39 PM Hartley Sweeten wrote: > > On Monday, April 15, 2019 12:25 PM, Arnd Bergmann wrote: > > We can communicate the clock rate using platform data rather than setting a > > flag to use a particular value in the driver, which is cleaner and avoids the dependency. > > > > No platform in the kernel currently defines the ep93xx keypad device structure, so this > > is a rather pointless excercise. Any out of tree users are probably dead now, but if not, > > they have to change their platform code to match the new platform_data structure. > > > > > diff --git a/include/linux/platform_data/keypad-ep93xx.h b/include/linux/platform_data/keypad-ep93xx.h > > index 0e36818e3680..3054fced8509 100644 > > --- a/include/linux/platform_data/keypad-ep93xx.h > > +++ b/include/linux/platform_data/keypad-ep93xx.h > > @@ -9,8 +9,7 @@ struct matrix_keymap_data; > > #define EP93XX_KEYPAD_DIAG_MODE (1<<1) /* diagnostic mode */ > > #define EP93XX_KEYPAD_BACK_DRIVE (1<<2) /* back driving mode */ > > #define EP93XX_KEYPAD_TEST_MODE (1<<3) /* scan only column 0 */ > > -#define EP93XX_KEYPAD_KDIV (1<<4) /* 1/4 clock or 1/16 clock */ > > -#define EP93XX_KEYPAD_AUTOREPEAT (1<<5) /* enable key autorepeat */ > > +#define EP93XX_KEYPAD_AUTOREPEAT (1<<4) /* enable key autorepeat */ > > You have re-defined the keypad register bits here. > > The KDIV bit changes the clock rate. The AUTOREPEAT bit enables key autorepeat. As far as I can tell, they are not register bits, just software flags for communicating between a board file and the driver, so I assumed I could freely reorganize them. Did I miss something? Arnd