Received: by 10.213.65.68 with SMTP id h4csp485958imn; Fri, 23 Mar 2018 08:48:21 -0700 (PDT) X-Google-Smtp-Source: AG47ELv8iKirNbHuy5ZAXIydEedpCWNJpofjC7C4sYtI5dyhwtIOZSOZ5Sl52yygojn9xUtV4Gkc X-Received: by 10.101.72.136 with SMTP id n8mr21419038pgs.201.1521820101862; Fri, 23 Mar 2018 08:48:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1521820101; cv=none; d=google.com; s=arc-20160816; b=0QZMilutD/qQszM5mKfLHJn8OFZ7k/ov50i2lFaNlffndHJxEjpaH4yAZ8a90tTmIT J4u2IHqVdNDXO53axoSemJ7Yp4JGtJ2Dq7mFaS4dXXx+5+N4Aaa1hHNpigy6jx825ruE cwcTaWjI42Qv4nA2JMx5LDAKJf7EsMtxnppM7qTaX/5LbzwloIzWeN5FDDchq4mKzaEh MgFDQAkJMHcg6+/ZGsVC087u7J0ZUaWZ4D1BtBcg3CeNQgAiR9uKiT1uekdE/eyIq70n BAhQki1jWh30wCW5XxTuWp33Z1J47A13GYZxsfKHIgAOY0cDIfBOcP7jTO0AbelDbox2 Th9w== 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:arc-authentication-results; bh=uldnwhGpEmhpOmK0ZSRYi5SXkXT+3WbdAp3U3vEgahQ=; b=N6QgybZxrw+N+BAhkcTcoL3b7y2espU+5hp0FmSSL+3Q2WjQWBzDmBiAACJQD50eGx bqEaU6U7iMQxW+ZUU32d4SUlrQS831sVuDt5qa/wmGQWysAfH6vwg0YWgP1TioGgMZ/3 ctyUge6y0YZHhJyaMKgBeOl12IYVyKutqPFpS14gRsEBYzC9QsJGbET0k78KZH1Q+ALX 9hY4ALlw6pdveIpin9YIKE67pN7p0w1JvS2U7eTTfHAlAlLXHXFI06KMzmeR6WIXGZw5 hed8BOT6skBydUwqS09U6wy1QUA8P4OU6uccHEkQPUcu+8q3H0XHO1QYwlFCWki+9x6W 6wSw== 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 k6-v6si8578492pll.391.2018.03.23.08.48.07; Fri, 23 Mar 2018 08:48:21 -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 S1751853AbeCWPq5 (ORCPT + 99 others); Fri, 23 Mar 2018 11:46:57 -0400 Received: from mail.linuxfoundation.org ([140.211.169.12]:53290 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751595AbeCWPq4 (ORCPT ); Fri, 23 Mar 2018 11:46:56 -0400 Received: from localhost (LFbn-1-12247-202.w90-92.abo.wanadoo.fr [90.92.61.202]) by mail.linuxfoundation.org (Postfix) with ESMTPSA id 9F340F07; Fri, 23 Mar 2018 15:46:55 +0000 (UTC) Date: Fri, 23 Mar 2018 16:46:54 +0100 From: Greg KH To: Ioana Ciornei Cc: laurentiu.tudor@nxp.com, linux-kernel@vger.kernel.org, stuyoder@gmail.com, ruxandra.radulescu@nxp.com, arnd@arndb.de, razvan.stefanescu@nxp.com, Roy.Pledge@nxp.com Subject: Re: [PATCH v3 2/4] bus: fsl-mc: add restool userspace support Message-ID: <20180323154654.GA382@kroah.com> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.9.4 (2018-02-28) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Mar 23, 2018 at 10:38:56AM -0500, Ioana Ciornei wrote: > +#include "fsl-mc-private.h" > + > +#define FSL_MC_BUS_MAX_MINORS 1 As you only need/want one character device here, why not just use the misc device api? It's much simpler, and handles all of the housekeeping for you correctly. It also means I don't have to audit all of your chardev code to verify it is correct :) And it will save you lines-of-code, always a good thing. thanks, greg k-h