Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754102AbbKLJiV (ORCPT ); Thu, 12 Nov 2015 04:38:21 -0500 Received: from mail-wm0-f54.google.com ([74.125.82.54]:37556 "EHLO mail-wm0-f54.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753500AbbKLJiQ (ORCPT ); Thu, 12 Nov 2015 04:38:16 -0500 Subject: Re: [RFC 1/4] iio: ina2xx: add direct IO support for TI INA2xx Power Monitors To: Daniel Baluta References: <1447171653-12756-1-git-send-email-mtitinger@baylibre.com> <1447171653-12756-2-git-send-email-mtitinger@baylibre.com> Cc: Jonathan Cameron , Hartmut Knaack , Lars-Peter Clausen , Peter Meerwald , "linux-iio@vger.kernel.org" , Linux Kernel Mailing List , mturquette@baylibre.com, bcousson@baylibre.com, ptitiano@baylibre.com From: Marc Titinger Message-ID: <56445E05.6070604@baylibre.com> Date: Thu, 12 Nov 2015 10:38:13 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.2.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1280 Lines: 34 On 11/11/2015 13:09, Daniel Baluta wrote: > > >> Signed-off-by: Marc Titinger >> --- >> drivers/iio/adc/Kconfig | 9 + >> drivers/iio/adc/Makefile | 1 + >> drivers/iio/adc/ina2xx-iio.c | 404 +++++++++++++++++++++++++++++++++++++++++++ > > One more thing. In IIO we do not prefer generic names for files. > Lets name this after the first device in the family. > > Here I would say we should call it drivers/iio/adc/ina219.c. Skip the > -iio suffix > from file name, because it is already under the iio/ directory. I get your point, but in this specific case there is already support for this chip family in hwmon and both drivers make sense because both applications exist (hardware monitoring or power measurement equipement). To avoid confusion it may be good to have at least a common radix for the CONFIG option, so that searching returns both options. > > If there is a module name conflict with hwmon module we can name the > .ko resulted > from this file ina219-iio.ko. > -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/