Received: by 2002:a25:b323:0:0:0:0:0 with SMTP id l35csp3024313ybj; Mon, 23 Sep 2019 13:25:17 -0700 (PDT) X-Google-Smtp-Source: APXvYqyBcXJ5NIOMVYJ13PR/T4AKrdNueTyLynOgJ7ZtTa7OEyiRQHcyYphQQnr8Npo1z8GPilFP X-Received: by 2002:a17:907:411d:: with SMTP id nw21mr1473291ejb.8.1569270317853; Mon, 23 Sep 2019 13:25:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1569270317; cv=none; d=google.com; s=arc-20160816; b=rj1XfC1jf/lpXNtv8f20chOMRpRF1sV4H9Lj43xyGT6Mh3EvjYDL9hupK0GZziFnA+ 0vs2GHkipouYLRu/oZQRypHzGK7jmCFbtr5EhrhbomY5YuIdPouFJg0LDzCN6bophsl3 +UEY6F2qrt02gWsprq39dywpscYSkmTJA+YRTuBLevna/hpIzJcgtDmWVKvPTbYplpvD v9NlsTAog50u8TTqVeJlzyvJD32ht9MwFFJvLouwstLDn4dbjqpq/4GqSoNCq+8xTZmg VzCgVol278qE25plyXvxfABoNbhyNjQlaDiOwsTf/50mSjQEkwvoIo8imPn/BxG0czwg k6kA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=BlJnL34zKRR5/RP59lzMWKohrJBQyVFwduLDxCLkhK0=; b=L8TIYpiAe0RJlhp/fJigobr1LWqoMs/qCbhnSYZj+eZJfuItvbsx4hDn+4G8QYp2AW oA5WTmG5s7YLRvU39sd075ZTiAgrC98fy/vtdhEaTIOkOfCLx2FWYfQAI8xP6giAo09t wDnWibUF+AMtfokGGy5q0opUIQIOHVZIL+5/xQ68sZE/hl8zHqYlgg9n2H4ywhVev0Kg e++BT3hF1mhjzduc2J9PphEwLGAn3M1tyDe5PpGOsmm0a90hscCz9b1UIkF/Dr7eFm8m FSsnKgosCmZiLC11861x1zhae6z+U2+Hq1LBXwj0AaiRNKZEGb/DPGQo7oiQl8YXSUI1 hlcQ== 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 d2si5722979ejc.136.2019.09.23.13.24.53; Mon, 23 Sep 2019 13:25:17 -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 S2387673AbfIVQOK (ORCPT + 99 others); Sun, 22 Sep 2019 12:14:10 -0400 Received: from atrey.karlin.mff.cuni.cz ([195.113.26.193]:46699 "EHLO atrey.karlin.mff.cuni.cz" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2387471AbfIVQOK (ORCPT ); Sun, 22 Sep 2019 12:14:10 -0400 Received: by atrey.karlin.mff.cuni.cz (Postfix, from userid 512) id 4F20D8031F; Sun, 22 Sep 2019 18:13:53 +0200 (CEST) Date: Sun, 22 Sep 2019 18:14:01 +0200 From: Pavel Machek To: Oleksij Rempel Cc: Anson Huang , "robh+dt@kernel.org" , "mark.rutland@arm.com" , "shawnguo@kernel.org" , "s.hauer@pengutronix.de" , "kernel@pengutronix.de" , "festevam@gmail.com" , "catalin.marinas@arm.com" , "will@kernel.org" , "dmitry.torokhov@gmail.com" , Aisheng Dong , "ulf.hansson@linaro.org" , Andy Duan , Peng Fan , Daniel Baluta , Leonard Crestez , "mripard@kernel.org" , "olof@lixom.net" , "arnd@arndb.de" , "jagan@amarulasolutions.com" , "bjorn.andersson@linaro.org" , "dinguyen@kernel.org" , "marcin.juszkiewicz@linaro.org" , "stefan@agner.ch" , "gregkh@linuxfoundation.org" , "andriy.shevchenko@linux.intel.com" , "yuehaibing@huawei.com" , "tglx@linutronix.de" , "ronald@innovation.ch" , "m.felsch@pengutronix.de" , Jacky Bai , "devicetree@vger.kernel.org" , "linux-kernel@vger.kernel.org" , "linux-arm-kernel@lists.infradead.org" , "linux-input@vger.kernel.org" , dl-linux-imx Subject: Re: [PATCH V2 2/5] input: keyboard: imx_sc: Add i.MX system controller power key support Message-ID: <20190922161401.GC1999@bug> References: <1567519424-32271-1-git-send-email-Anson.Huang@nxp.com> <1567519424-32271-2-git-send-email-Anson.Huang@nxp.com> <6d8dd5df-02da-b4cd-e61d-a4a15d0bf0c8@pengutronix.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi! > >>Why is it global struct? It seems to be flexible configurable over devicetree. > >>So I would assume it should be able to handle more then one button. Please > >>remove global variables, make it allocatable per OF node. > > > >There is ONLY one button available for SC key, but yes, I think I can make the structure > >private and get all necessary data from the structure using container_of. > > And we will never need more then 640 kB RAM ;) > https://en.wikiquote.org/wiki/Talk:Bill_Gates Right question is "is it worth complicating kernel now (and making it slower/bigger) for future flexibility?". And I believe answer is "no", but it is not a big deal either way. Pavel -- (english) http://www.livejournal.com/~pavelmachek (cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html