From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754719AbbAWAhK (ORCPT ); Thu, 22 Jan 2015 19:37:10 -0500 Received: from mail-ig0-f180.google.com ([209.85.213.180]:43666 "EHLO mail-ig0-f180.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754215AbbAWAhG convert rfc822-to-8bit (ORCPT ); Thu, 22 Jan 2015 19:37:06 -0500 From: Dmitry Torokhov To: Samuel Thibault Cc: Pavel Machek , David Herrmann , akpm@linux-foundation.org, jslaby@suse.cz, Bryan Wu , rpurdie@rpsys.net, linux-kernel@vger.kernel.org, Evan Broder , Arnaud Patard , Peter Korsgaard , Sascha Hauer , Rob Clark , Niels de Vos , linux-arm-kernel@lists.infradead.org, blogic@openwrt.org, Pali =?ISO-8859-1?Q?Roh=E1r?= Subject: Re: [PATCHv5 2/2] INPUT: Introduce generic trigger/LED pairs to input LEDs Date: Thu, 22 Jan 2015 16:37:02 -0800 Message-ID: <1756449.aIckN0M451@dtor-glaptop> User-Agent: KMail/4.13.3 (Linux/3.13.0-43-generic; KDE/4.13.3; x86_64; ; ) In-Reply-To: <20150123003011.GC3123@type.youpi.perso.aquilenet.fr> References: <20141226232116.GA5069@type> <20150123001038.GA2940@type.youpi.perso.aquilenet.fr> <20150123003011.GC3123@type.youpi.perso.aquilenet.fr> MIME-Version: 1.0 Content-Transfer-Encoding: 8BIT Content-Type: text/plain; charset="iso-8859-1" Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Friday, January 23, 2015 01:30:11 AM Samuel Thibault wrote: > Samuel Thibault, le Fri 23 Jan 2015 01:10:38 +0100, a écrit : > > Dmitry Torokhov, le Sun 04 Jan 2015 15:28:38 -0800, a écrit : > > > > + dev = cdev->dev->platform_data; > > > > > > Umm, platform data is not the best place for storing this. Why not > > > drvdata? > > > > Ah, actually led_classdev already makes use of it, see the > > device_create_with_groups call in led_classdev_register. > > Actually I'd say it makes sense to be using the platform_data field: > from the point of view of the led object, the input object is indeed > something like a platform. No, platform data is what difefrentiates an arm board from another arm board, or an x86 or mips one. Thanks. -- Dmitry