From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756388Ab2IEI34 (ORCPT ); Wed, 5 Sep 2012 04:29:56 -0400 Received: from mail-wg0-f44.google.com ([74.125.82.44]:41090 "EHLO mail-wg0-f44.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751059Ab2IEI3w (ORCPT ); Wed, 5 Sep 2012 04:29:52 -0400 MIME-Version: 1.0 In-Reply-To: <50469C2F.2060008@synaptics.com> References: <1345241877-16200-1-git-send-email-cheiny@synaptics.com> <1345241877-16200-6-git-send-email-cheiny@synaptics.com> <50469C2F.2060008@synaptics.com> Date: Wed, 5 Sep 2012 10:29:50 +0200 Message-ID: Subject: Re: [RFC PATCH 5/17] input: rmidev character driver for RMI4 sensors From: Linus Walleij To: Christopher Heiny Cc: Dmitry Torokhov , Jean Delvare , Linux Kernel , Linux Input , Allie Xiong , William Manson , Peichen Chang , Joerie de Gram , Wolfram Sang , Mathieu Poirier , Linus Walleij , Naveen Kumar Gaddipati 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 Wed, Sep 5, 2012 at 2:26 AM, Christopher Heiny wrote: > On 08/27/2012 11:49 AM, Linus Walleij wrote: >> >> You need to patch your desired major number into >> Documentation/devices.txt' > > We were going by the recommendation in Linux Device Drivers (3rd edition) to > use dynamic major number allocation via alloc_chrdev_region. In particular > in section 3.2.3 it says "new numbers are not being assigned". I guess at > this point we need to know whether the info in LDD3 is authoritative or not. You're right, go for dynamic numbers. I was plain wrong. >>> +static struct class *rmidev_device_class; >> >> >> Last time discussed with Greg, class devices were deprecated, >> and you should just use a bus instead. (But not sure.) > > The references I found online weren't clear on this, so more investigation > is required. We'll defer that till we find out if the regmap changes > eliminate the need for this. Just push Greg to review next version and he'll tell you what to do about this, no problem. Yours, Linus Walleij