Received: by 2002:a05:6358:4e97:b0:b3:742d:4702 with SMTP id ce23csp781297rwb; Sat, 13 Aug 2022 08:39:23 -0700 (PDT) X-Google-Smtp-Source: AA6agR6z2MObrhaiQ28ucs1pE3Kmezz6U4VTnPVIc1wTjIcEG/DgGrBJFIwW8At3QMcln6spvn62 X-Received: by 2002:a17:907:6930:b0:733:621:8437 with SMTP id rb48-20020a170907693000b0073306218437mr5779519ejc.111.1660405163442; Sat, 13 Aug 2022 08:39:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1660405163; cv=none; d=google.com; s=arc-20160816; b=QngfKZZ3M2xI2EvKLw0skYlciKqIm1vPlAOfpwkRiiIztTqob7ATaEdiq8URUgdxZC tfLY8e/zB//gVswdFEM6C4i9LQjYl0kNMft7MkbtajcRdgBC4DwrLr5yHVfARolai6Wk pqiRq2GfNPeXytZfsLOOYcUz21jLLVwRYmbroCxGyVWa7DnsO9fizUq0tzOAS4d8gH8V XiSSa1RenaNMG6HI0uztKcY5UbjS8I043jUxkyE70/w5Dd6HU+tepF5OlQs7kh6hiQL+ 2WxrvRnBsGah7B8EFqRbHUW3U6ixd0Ho4vFMqA8OYTDTA8FuPeS7QuSdFJDRdTc+yDj/ boKQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date :dkim-signature; bh=c66mXpSFZ1jxMaRik54SmIRJUbC6X3URqoFqkTSE5Oc=; b=yp+9BCecI9iJvwOmd6O8xGWAXBjQ1ZZ336/EV92w/stQWnWBCP00uLmknCzGKEoTyv 5wtrv9zzQis92Kfqr4sfugcCX6U8rYzQMStQtIkg93aWh2b5orVTHwP8wm+C4RnDHuGS 38VtnF1n4XwjmJ2ihr/y3FTPEL0hCMVOkkzUurMxQQnZtGSMtF3R+3BvpW1RTejXiP61 542a+nvVyntEmXnVkJq9OVSb++hnGxduAfjBfiHAoakFcg+KSo439Dvbxwj+27alfBV2 k7NC0NOzmFOcRsA6WUapJu15QUdttFthUsuxxBCCy9OcpFXsjCVapY1ap8IrGdiT74xm tx+A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=awR9jlAg; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id he7-20020a1709073d8700b007310137867csi4512986ejc.916.2022.08.13.08.38.52; Sat, 13 Aug 2022 08:39:23 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=awR9jlAg; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239781AbiHMPfu (ORCPT + 99 others); Sat, 13 Aug 2022 11:35:50 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48786 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239671AbiHMPfs (ORCPT ); Sat, 13 Aug 2022 11:35:48 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4FC6520BC5; Sat, 13 Aug 2022 08:35:46 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id E6363B801BF; Sat, 13 Aug 2022 15:35:44 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 65329C433D6; Sat, 13 Aug 2022 15:35:36 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1660404943; bh=H+193s9DhJA+Fo+1yQtUSKQ/Q5LCMqL5XgyPBlKN9iM=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=awR9jlAgHn06cl1vhF3zgZ4uZsd98vev6ArN5JzdTNjlXO3+QBqNbjBNOi0fhFqGz G5xETOIQbS4eacFez5N3d0j1uw6kH5WKR5zSp0Nrp713gqnQjtBPCtO0kxGnmKjY0f JD+CQejRE5uTr+J/Ba19U9PMtT3dvxdAYw5X8+bRQlfgRkIZnuKnsl1RQDmCKRdQhz poVbpv0LRHsvzGAW2khsaoJXWSdgxnm1zKGTGcw3liaDhdN/u5ZE9v6ZsSGppbKgUb vxYeoZ1y3DOWoRlK56myGWtVQMUT5gkiXrk8D5Nnwch4G+00BcZEwgQ8/zE+q7+/Tt 5O5IYB13Ysc0g== Date: Sat, 13 Aug 2022 16:46:06 +0100 From: Jonathan Cameron To: Andy Shevchenko Cc: ChiaEn Wu , Lee Jones , Daniel Thompson , Jingoo Han , Pavel Machek , Rob Herring , Krzysztof Kozlowski , Matthias Brugger , Sebastian Reichel , Chunfeng Yun , Greg Kroah-Hartman , Lars-Peter Clausen , Liam Girdwood , Mark Brown , Guenter Roeck , "Krogerus, Heikki" , Helge Deller , ChiaEn Wu , Alice Chen , cy_huang , dri-devel , Linux LED Subsystem , devicetree , linux-arm Mailing List , "moderated list:ARM/Mediatek SoC support" , Linux Kernel Mailing List , Linux PM , USB , linux-iio , "open list:FRAMEBUFFER LAYER" , szuni chen , AngeloGioacchino Del Regno Subject: Re: [PATCH v7 09/13] iio: adc: mt6370: Add MediaTek MT6370 support Message-ID: <20220813164606.3ed93322@jic23-huawei> In-Reply-To: References: <20220805070610.3516-1-peterwu.pub@gmail.com> <20220805070610.3516-10-peterwu.pub@gmail.com> X-Mailer: Claws Mail 4.1.0 (GTK 3.24.34; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-7.7 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, 5 Aug 2022 12:54:04 +0200 Andy Shevchenko wrote: > On Fri, Aug 5, 2022 at 9:07 AM ChiaEn Wu wrote: > > > > From: ChiaEn Wu > > > > MediaTek MT6370 is a SubPMIC consisting of a single cell battery charger > > with ADC monitoring, RGB LEDs, dual channel flashlight, WLED backlight > > driver, display bias voltage supply, one general purpose LDO, and the > > USB Type-C & PD controller complies with the latest USB Type-C and PD > > standards. > > > > Add a support for the MT6370 ADC driver for system monitoring, including > > charger current, voltage, and temperature. > > On Fri, Aug 5, 2022 at 9:07 AM ChiaEn Wu wrote: > > > > From: ChiYuan Huang > > > > The MediaTek MT6370 is a highly-integrated smart power management IC, > > which includes a single cell Li-Ion/Li-Polymer switching battery > > charger, a USB Type-C & Power Delivery (PD) controller, dual > > Flash LED current sources, a RGB LED driver, a backlight WLED driver, > > a display bias driver and a general LDO for portable devices. > > > > Add a support for the Type-C & Power Delivery controller in > > MediaTek MT6370 IC. > > Reviewed-by: Andy Shevchenko Oops. I just noticed I replied only to Andy due to a misclick. Acked-by: Jonathan Cameron I took a quick glance through, and with Andy's comments now all answered to his satisfaction I'm fine with this going through the MFD tree (or another path if one makes more sense). Thanks to Andy for his reviewing effort on this one! Note that because of the bindings header I think this has a build dependency on the MFD binding patch. Jonathan > > > Reviewed-by: AngeloGioacchino Del Regno > > Signed-off-by: ChiaEn Wu > > --- > > > > v7 > > - Add AICR(100mA ~ 350mA), ICHG(100mA ~ 800mA) macros > > - Remove 400mA AICR and 900mA ICHG macros > > - Revise using 'if-else' to 'switch-case' in mt6370_adc_read_scale() > > where the adc channel is ibus or ibat > > --- > > drivers/iio/adc/Kconfig | 12 ++ > > drivers/iio/adc/Makefile | 1 + > > drivers/iio/adc/mt6370-adc.c | 305 +++++++++++++++++++++++++++++++++++++++++++ > > 3 files changed, 318 insertions(+) > > create mode 100644 drivers/iio/adc/mt6370-adc.c > > > > diff --git a/drivers/iio/adc/Kconfig b/drivers/iio/adc/Kconfig > > index 7fe5930..995cbb5 100644 > > --- a/drivers/iio/adc/Kconfig > > +++ b/drivers/iio/adc/Kconfig > > @@ -736,6 +736,18 @@ config MEDIATEK_MT6360_ADC > > is used in smartphones and tablets and supports a 11 channel > > general purpose ADC. > > > > +config MEDIATEK_MT6370_ADC > > + tristate "MediaTek MT6370 ADC driver" > > + depends on MFD_MT6370 > > + help > > + Say yes here to enable MediaTek MT6370 ADC support. > > + > > + This ADC driver provides 9 channels for system monitoring (charger > > + current, voltage, and temperature). > > + > > + This driver can also be built as a module. If so, the module > > + will be called "mt6370-adc". > > + > > config MEDIATEK_MT6577_AUXADC > > tristate "MediaTek AUXADC driver" > > depends on ARCH_MEDIATEK || COMPILE_TEST > > diff --git a/drivers/iio/adc/Makefile b/drivers/iio/adc/Makefile > > index 1772a54..c6bc35f 100644 > > --- a/drivers/iio/adc/Makefile > > +++ b/drivers/iio/adc/Makefile > > @@ -68,6 +68,7 @@ obj-$(CONFIG_MCP320X) += mcp320x.o > > obj-$(CONFIG_MCP3422) += mcp3422.o > > obj-$(CONFIG_MCP3911) += mcp3911.o > > obj-$(CONFIG_MEDIATEK_MT6360_ADC) += mt6360-adc.o > > +obj-$(CONFIG_MEDIATEK_MT6370_ADC) += mt6370-adc.o > > obj-$(CONFIG_MEDIATEK_MT6577_AUXADC) += mt6577_auxadc.o > > obj-$(CONFIG_MEN_Z188_ADC) += men_z188_adc.o > > obj-$(CONFIG_MESON_SARADC) += meson_saradc.o > > diff --git a/drivers/iio/adc/mt6370-adc.c b/drivers/iio/adc/mt6370-adc.c > > new file mode 100644 > > index 0000000..2a46471 > > --- /dev/null > > +++ b/drivers/iio/adc/mt6370-adc.c > > @@ -0,0 +1,305 @@ > > +// SPDX-License-Identifier: GPL-2.0-only > > +/* > > + * Copyright (C) 2022 Richtek Technology Corp. > > + * > > + * Author: ChiaEn Wu > > + */ > > + > > +#include > > +#include > > +#include > > +#include > > +#include > > +#include > > +#include > > +#include > > +#include > > +#include > > +#include > > + > > +#include > > + > > +#define MT6370_REG_CHG_CTRL3 0x113 > > +#define MT6370_REG_CHG_CTRL7 0x117 > > +#define MT6370_REG_CHG_ADC 0x121 > > +#define MT6370_REG_ADC_DATA_H 0x14C > > + > > +#define MT6370_ADC_START_MASK BIT(0) > > +#define MT6370_ADC_IN_SEL_MASK GENMASK(7, 4) > > +#define MT6370_AICR_ICHG_MASK GENMASK(7, 2) > > + > > +#define MT6370_AICR_100_mA 0x0 > > +#define MT6370_AICR_150_mA 0x1 > > +#define MT6370_AICR_200_mA 0x2 > > +#define MT6370_AICR_250_mA 0x3 > > +#define MT6370_AICR_300_mA 0x4 > > +#define MT6370_AICR_350_mA 0x5 > > + > > +#define MT6370_ICHG_100_mA 0x0 > > +#define MT6370_ICHG_200_mA 0x1 > > +#define MT6370_ICHG_300_mA 0x2 > > +#define MT6370_ICHG_400_mA 0x3 > > +#define MT6370_ICHG_500_mA 0x4 > > +#define MT6370_ICHG_600_mA 0x5 > > +#define MT6370_ICHG_700_mA 0x6 > > +#define MT6370_ICHG_800_mA 0x7 > > + > > +#define ADC_CONV_TIME_MS 35 > > +#define ADC_CONV_POLLING_TIME_US 1000 > > + > > +struct mt6370_adc_data { > > + struct device *dev; > > + struct regmap *regmap; > > + /* > > + * This mutex lock is for preventing the different ADC channels > > + * from being read at the same time. > > + */ > > + struct mutex adc_lock; > > +}; > > + > > +static int mt6370_adc_read_channel(struct mt6370_adc_data *priv, int chan, > > + unsigned long addr, int *val) > > +{ > > + unsigned int reg_val; > > + __be16 be_val; > > + int ret; > > + > > + mutex_lock(&priv->adc_lock); > > + > > + reg_val = MT6370_ADC_START_MASK | > > + FIELD_PREP(MT6370_ADC_IN_SEL_MASK, addr); > > + ret = regmap_write(priv->regmap, MT6370_REG_CHG_ADC, reg_val); > > + if (ret) > > + goto adc_unlock; > > + > > + msleep(ADC_CONV_TIME_MS); > > + > > + ret = regmap_read_poll_timeout(priv->regmap, > > + MT6370_REG_CHG_ADC, reg_val, > > + !(reg_val & MT6370_ADC_START_MASK), > > + ADC_CONV_POLLING_TIME_US, > > + ADC_CONV_TIME_MS * MILLI * 3); > > + if (ret) { > > + dev_err(priv->dev, "Failed to read ADC register (%d)\n", ret); > > + goto adc_unlock; > > + } > > + > > + ret = regmap_raw_read(priv->regmap, MT6370_REG_ADC_DATA_H, > > + &be_val, sizeof(be_val)); > > + if (ret) > > + goto adc_unlock; > > + > > + *val = be16_to_cpu(be_val); > > + ret = IIO_VAL_INT; > > + > > +adc_unlock: > > + mutex_unlock(&priv->adc_lock); > > + > > + return ret; > > +} > > + > > +static int mt6370_adc_read_scale(struct mt6370_adc_data *priv, > > + int chan, int *val1, int *val2) > > +{ > > + unsigned int reg_val; > > + int ret; > > + > > + switch (chan) { > > + case MT6370_CHAN_VBAT: > > + case MT6370_CHAN_VSYS: > > + case MT6370_CHAN_CHG_VDDP: > > + *val1 = 5; > > + return IIO_VAL_INT; > > + case MT6370_CHAN_IBUS: > > + ret = regmap_read(priv->regmap, MT6370_REG_CHG_CTRL3, ®_val); > > + if (ret) > > + return ret; > > + > > + reg_val = FIELD_GET(MT6370_AICR_ICHG_MASK, reg_val); > > + switch (reg_val) { > > + case MT6370_AICR_100_mA: > > + case MT6370_AICR_150_mA: > > + case MT6370_AICR_200_mA: > > + case MT6370_AICR_250_mA: > > + case MT6370_AICR_300_mA: > > + case MT6370_AICR_350_mA: > > + *val1 = 3350; > > + break; > > + default: > > + *val1 = 5000; > > + break; > > + } > > + > > + *val2 = 100; > > + > > + return IIO_VAL_FRACTIONAL; > > + case MT6370_CHAN_IBAT: > > + ret = regmap_read(priv->regmap, MT6370_REG_CHG_CTRL7, ®_val); > > + if (ret) > > + return ret; > > + > > + reg_val = FIELD_GET(MT6370_AICR_ICHG_MASK, reg_val); > > + switch (reg_val) { > > + case MT6370_ICHG_100_mA: > > + case MT6370_ICHG_200_mA: > > + case MT6370_ICHG_300_mA: > > + case MT6370_ICHG_400_mA: > > + *val1 = 2375; > > + break; > > + case MT6370_ICHG_500_mA: > > + case MT6370_ICHG_600_mA: > > + case MT6370_ICHG_700_mA: > > + case MT6370_ICHG_800_mA: > > + *val1 = 2680; > > + break; > > + default: > > + *val1 = 5000; > > + break; > > + } > > + > > + *val2 = 100; > > + > > + return IIO_VAL_FRACTIONAL; > > + case MT6370_CHAN_VBUSDIV5: > > + *val1 = 25; > > + return IIO_VAL_INT; > > + case MT6370_CHAN_VBUSDIV2: > > + *val1 = 50; > > + return IIO_VAL_INT; > > + case MT6370_CHAN_TS_BAT: > > + *val1 = 25; > > + *val2 = 10000; > > + return IIO_VAL_FRACTIONAL; > > + case MT6370_CHAN_TEMP_JC: > > + *val1 = 2000; > > + return IIO_VAL_FRACTIONAL; > > + default: > > + return -EINVAL; > > + } > > +} > > + > > +static int mt6370_adc_read_offset(struct mt6370_adc_data *priv, > > + int chan, int *val) > > +{ > > + *val = -20; > > + > > + return IIO_VAL_INT; > > +} > > + > > +static int mt6370_adc_read_raw(struct iio_dev *iio_dev, > > + const struct iio_chan_spec *chan, > > + int *val, int *val2, long mask) > > +{ > > + struct mt6370_adc_data *priv = iio_priv(iio_dev); > > + > > + switch (mask) { > > + case IIO_CHAN_INFO_RAW: > > + return mt6370_adc_read_channel(priv, chan->channel, > > + chan->address, val); > > + case IIO_CHAN_INFO_SCALE: > > + return mt6370_adc_read_scale(priv, chan->channel, val, val2); > > + case IIO_CHAN_INFO_OFFSET: > > + return mt6370_adc_read_offset(priv, chan->channel, val); > > + default: > > + return -EINVAL; > > + } > > +} > > + > > +static const char * const mt6370_channel_labels[MT6370_CHAN_MAX] = { > > + [MT6370_CHAN_VBUSDIV5] = "vbusdiv5", > > + [MT6370_CHAN_VBUSDIV2] = "vbusdiv2", > > + [MT6370_CHAN_VSYS] = "vsys", > > + [MT6370_CHAN_VBAT] = "vbat", > > + [MT6370_CHAN_TS_BAT] = "ts_bat", > > + [MT6370_CHAN_IBUS] = "ibus", > > + [MT6370_CHAN_IBAT] = "ibat", > > + [MT6370_CHAN_CHG_VDDP] = "chg_vddp", > > + [MT6370_CHAN_TEMP_JC] = "temp_jc", > > +}; > > + > > +static int mt6370_adc_read_label(struct iio_dev *iio_dev, > > + struct iio_chan_spec const *chan, char *label) > > +{ > > + return sysfs_emit(label, "%s\n", mt6370_channel_labels[chan->channel]); > > +} > > + > > +static const struct iio_info mt6370_adc_iio_info = { > > + .read_raw = mt6370_adc_read_raw, > > + .read_label = mt6370_adc_read_label, > > +}; > > + > > +#define MT6370_ADC_CHAN(_idx, _type, _addr, _extra_info) { \ > > + .type = _type, \ > > + .channel = MT6370_CHAN_##_idx, \ > > + .address = _addr, \ > > + .scan_index = MT6370_CHAN_##_idx, \ > > + .indexed = 1, \ > > + .info_mask_separate = BIT(IIO_CHAN_INFO_RAW) | \ > > + BIT(IIO_CHAN_INFO_SCALE) | \ > > + _extra_info, \ > > +} > > + > > +static const struct iio_chan_spec mt6370_adc_channels[] = { > > + MT6370_ADC_CHAN(VBUSDIV5, IIO_VOLTAGE, 1, 0), > > + MT6370_ADC_CHAN(VBUSDIV2, IIO_VOLTAGE, 2, 0), > > + MT6370_ADC_CHAN(VSYS, IIO_VOLTAGE, 3, 0), > > + MT6370_ADC_CHAN(VBAT, IIO_VOLTAGE, 4, 0), > > + MT6370_ADC_CHAN(TS_BAT, IIO_VOLTAGE, 6, 0), > > + MT6370_ADC_CHAN(IBUS, IIO_CURRENT, 8, 0), > > + MT6370_ADC_CHAN(IBAT, IIO_CURRENT, 9, 0), > > + MT6370_ADC_CHAN(CHG_VDDP, IIO_VOLTAGE, 11, 0), > > + MT6370_ADC_CHAN(TEMP_JC, IIO_TEMP, 12, BIT(IIO_CHAN_INFO_OFFSET)), > > +}; > > + > > +static int mt6370_adc_probe(struct platform_device *pdev) > > +{ > > + struct device *dev = &pdev->dev; > > + struct mt6370_adc_data *priv; > > + struct iio_dev *indio_dev; > > + struct regmap *regmap; > > + int ret; > > + > > + regmap = dev_get_regmap(pdev->dev.parent, NULL); > > + if (!regmap) > > + return dev_err_probe(dev, -ENODEV, "Failed to get regmap\n"); > > + > > + indio_dev = devm_iio_device_alloc(dev, sizeof(*priv)); > > + if (!indio_dev) > > + return -ENOMEM; > > + > > + priv = iio_priv(indio_dev); > > + priv->dev = dev; > > + priv->regmap = regmap; > > + mutex_init(&priv->adc_lock); > > + > > + ret = regmap_write(priv->regmap, MT6370_REG_CHG_ADC, 0); > > + if (ret) > > + return dev_err_probe(dev, ret, "Failed to reset ADC\n"); > > + > > + indio_dev->name = "mt6370-adc"; > > + indio_dev->info = &mt6370_adc_iio_info; > > + indio_dev->modes = INDIO_DIRECT_MODE; > > + indio_dev->channels = mt6370_adc_channels; > > + indio_dev->num_channels = ARRAY_SIZE(mt6370_adc_channels); > > + > > + return devm_iio_device_register(dev, indio_dev); > > +} > > + > > +static const struct of_device_id mt6370_adc_of_id[] = { > > + { .compatible = "mediatek,mt6370-adc", }, > > + {} > > +}; > > +MODULE_DEVICE_TABLE(of, mt6370_adc_of_id); > > + > > +static struct platform_driver mt6370_adc_driver = { > > + .driver = { > > + .name = "mt6370-adc", > > + .of_match_table = mt6370_adc_of_id, > > + }, > > + .probe = mt6370_adc_probe, > > +}; > > +module_platform_driver(mt6370_adc_driver); > > + > > +MODULE_AUTHOR("ChiaEn Wu "); > > +MODULE_DESCRIPTION("MT6370 ADC Driver"); > > +MODULE_LICENSE("GPL v2"); > > -- > > 2.7.4 > > > >