Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp10012558ybl; Thu, 26 Dec 2019 09:11:58 -0800 (PST) X-Google-Smtp-Source: APXvYqxZInKv5ha4qUuRfLT0f/BGCKa5lw3od4BB4nwNaHVO5ByKM08Q46CVA7U0MeikFPbvQWhH X-Received: by 2002:a05:6830:1d6a:: with SMTP id l10mr52985572oti.233.1577380318176; Thu, 26 Dec 2019 09:11:58 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1577380318; cv=none; d=google.com; s=arc-20160816; b=M6PCS8fcyR2Xs7ytggbcpmDTJjfw2pnEIG8GdFgF8gVJptOXhck2AxxqcmCOz5Hi7o vfkEbU99jFqQ95oyjNot81cRupU+hs1L4gLK3gB6bLDaipc2o0bh1WWXUp/0ls/5zTyN 04S/kp2gNBv0ojaHFDPLVXccbv9yKUzco5jcKX5aTlfFMPEWO4HVlcceMlPDpKOrvYME GCmwCQ8v8aUfoxCgWDrss9gW2kjHuqUJ8LQcy5xcXVoOmqTEpBGeuVwWEb5Q4zW6tgXG CLmjGW6dajscal3Mhey+c9L2N4ImBI56A6DB6dwgIAktWmLtHEJSsNJ79MPz7TuQNxD9 2QYA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature; bh=FMhyUSbY+uFKj6x5W1VsuF+7c8qIlSDSygxqdy4+jdQ=; b=v7S1fWZ70kNT1BsQl46SYn00YiuMrEuh83EeY/chiYx4hEJVv3rWOdfqoRN7bjsHU0 Ou56/StYanhP3SZka8iXQ80RQH7dZqsxYJQZhohks8wln2DyalS1onR1RfTgb6l0u89V yWcUrwyTfV8ei9c0cXMZ+OgGvk8CCZGmEyqKMqSy3E17QGRz+8nXzvBVAZSBU93CiQz4 ck78lcbECqrAMBlC0XC9ITQbwbaCgOSRCPwJky6QjdYL3gGk4BAfOg6rnv1G89W19t5/ 7ks4xC4ICqF+YyoJmjivyxbLs2/gynfKCDd8AgtQcxttGO06wYyLuo4Z8Uz1qBeq2BSD DTsg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b="bp/fx6ZO"; 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 m90si14994188otc.259.2019.12.26.09.11.34; Thu, 26 Dec 2019 09:11:58 -0800 (PST) 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; dkim=fail header.i=@gmail.com header.s=20161025 header.b="bp/fx6ZO"; 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 S1726626AbfLZRK0 (ORCPT + 99 others); Thu, 26 Dec 2019 12:10:26 -0500 Received: from mail-pf1-f196.google.com ([209.85.210.196]:43781 "EHLO mail-pf1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726480AbfLZRKZ (ORCPT ); Thu, 26 Dec 2019 12:10:25 -0500 Received: by mail-pf1-f196.google.com with SMTP id x6so12345196pfo.10; Thu, 26 Dec 2019 09:10:25 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=FMhyUSbY+uFKj6x5W1VsuF+7c8qIlSDSygxqdy4+jdQ=; b=bp/fx6ZOp/eIkBCHu/Z7ACHGVLQdQO1UplSLQytwaU9vzGWvu/h3oP5B0Yj8Y2UDnw 4A8VkUptwLXz6r+78hFZyc1LiE77El5I+LfvbS0txe7O6tK1vTivYiAqjfFTX37WUzmn TCbFXegsbCzqtd27jwHfTDZHOyShSTA2sygFbKgTUfOVnLFyWJTG3oaKrHtZWwtQSBUO D4RH3BNoY9byXHgTGdy/qwtbyoTwCMQI7xgGLLioY7Ft4KunZomOEj5cf/lEN3m93fSB kJbPk2rh+SLWGVSFesmq+5RbZzYtd2zuAUVSDFu6ZxUFK2kRlCk0n58++sWiUjIH2Mmd qx1w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:subject:to:cc:references:from:message-id :date:user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=FMhyUSbY+uFKj6x5W1VsuF+7c8qIlSDSygxqdy4+jdQ=; b=RB3gXPvBXJ2ra0/BZy7OTGBR1TxKb7y7zsxpLYTJhvznMDuNvfGqmo0ua4AO/ZM950 aVdVBoH1Jw6KBJ8y8owIQ+FFW+eQix1hRppuSRlEPVF3W0QB3/HBY0fR0P+KgINoKGuI p647Z0gooxQFE6Mo8wGk3u9YePi1GjYdYCwhsHrpI/uMgfRQ9k8gw8u0xIdiyZ2O0FIG +F6C/gLs/8o8DNaIBRuMnFyBXUf8QgjuweisZKm8+kUohCNFhvm4acr3ZAIFTO0tjpof 77OOLy2xYWmNaxGI5s/FZ9UG1fKahF+azlva3xvVPC2NO70SqK4g+AWEVvYqXKLf9TgG jgKA== X-Gm-Message-State: APjAAAWvA0J7kaUJ9EL6RRHqRPGgZ+wDXdEXhbvcN23N4UKkWDwFhyZY ZHcuvnBGxsUw7FDmSoS9w0s= X-Received: by 2002:a63:1853:: with SMTP id 19mr48130430pgy.170.1577380224686; Thu, 26 Dec 2019 09:10:24 -0800 (PST) Received: from server.roeck-us.net ([2600:1700:e321:62f0:329c:23ff:fee3:9d7c]) by smtp.gmail.com with ESMTPSA id v10sm28186162pgk.24.2019.12.26.09.10.23 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 26 Dec 2019 09:10:24 -0800 (PST) Subject: Re: [PATCH v1 0/1] hwmon: (pmbus) Add Infineon IR38164, Renesas RAA228006, and TI SN1701022 driver To: Andrew Peng , jdelvare@suse.com, linux-hwmon@vger.kernel.org, linux-kernel@vger.kernel.org, benjaminfair@google.com Cc: openbmc@lists.ozlabs.org, Derek Lin , Yonghui Liu References: <1577350032-127172-1-git-send-email-pengms1@lenovo.com> From: Guenter Roeck Message-ID: <7048fe51-67b9-e13a-1337-9e58cd782126@roeck-us.net> Date: Thu, 26 Dec 2019 09:10:22 -0800 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.2.2 MIME-Version: 1.0 In-Reply-To: <1577350032-127172-1-git-send-email-pengms1@lenovo.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 12/26/19 12:47 AM, Andrew Peng wrote: > Add the pmbus driver for Infineon IR38164 Voltage Regulator driver. > Add the pmbus driver for Renesas RAA228006 Digital PWM Controller. > Add the pmbus driver for TI SN1701022 driver. > > Signed-off-by: Andrew Peng > Signed-off-by: Derek Lin > Signed-off-by: Yonghui Liu Please don't add three drivers with one patch. One patch per driver, please. Also, don't label the patch "0/1" if there is just one patch. More comments inline. > --- > v1: initial version > > drivers/hwmon/pmbus/Kconfig | 25 ++++++++ > drivers/hwmon/pmbus/Makefile | 3 + > drivers/hwmon/pmbus/ir38164.c | 72 +++++++++++++++++++++++ > drivers/hwmon/pmbus/raa228006.c | 127 ++++++++++++++++++++++++++++++++++++++++ > drivers/hwmon/pmbus/sn1701022.c | 80 +++++++++++++++++++++++++ Documentation missing for each of those. > 5 files changed, 307 insertions(+) > create mode 100644 drivers/hwmon/pmbus/ir38164.c > create mode 100644 drivers/hwmon/pmbus/raa228006.c > create mode 100644 drivers/hwmon/pmbus/sn1701022.c > > diff --git a/drivers/hwmon/pmbus/Kconfig b/drivers/hwmon/pmbus/Kconfig > index b658848..d51e67d 100644 > --- a/drivers/hwmon/pmbus/Kconfig > +++ b/drivers/hwmon/pmbus/Kconfig > @@ -64,6 +64,15 @@ config SENSORS_IR38064 > This driver can also be built as a module. If so, the module will > be called ir38064. > > +config SENSORS_IR38164 > + tristate "Infineon IR38164" > + help > + If you say yes here you get hardware monitoring support for Infineon > + IR38164. > + Please more information. > + This driver can also be built as a module. If so, the module will > + be called ir38164. > + > config SENSORS_IRPS5401 > tristate "Infineon IRPS5401" > help > @@ -221,4 +230,20 @@ config SENSORS_ZL6100 > This driver can also be built as a module. If so, the module will > be called zl6100. > > +config SENSORS_RAA228006 > + tristate "RAA228006 and compatibles" > + help > + If you say yes here you get hardware monitoring support for RAA228006. > + Please more information. What is that ? > + This driver can also be built as a module. If so, the module will > + be called RAA228006. > + > +config SENSORS_SN1701022 > + tristate "SN1701022" > + help > + If you say yes here you get hardware monitoring support for SN1701022. > + Please more information. > + This driver can also be built as a module. If so, the module will > + be called sn1701022. > + > endif # PMBUS > diff --git a/drivers/hwmon/pmbus/Makefile b/drivers/hwmon/pmbus/Makefile > index c950ea9..21d259f 100644 > --- a/drivers/hwmon/pmbus/Makefile > +++ b/drivers/hwmon/pmbus/Makefile > @@ -9,6 +9,7 @@ obj-$(CONFIG_SENSORS_ADM1275) += adm1275.o > obj-$(CONFIG_SENSORS_IBM_CFFPS) += ibm-cffps.o > obj-$(CONFIG_SENSORS_IR35221) += ir35221.o > obj-$(CONFIG_SENSORS_IR38064) += ir38064.o > +obj-$(CONFIG_SENSORS_IR38164) += ir38164.o > obj-$(CONFIG_SENSORS_IRPS5401) += irps5401.o > obj-$(CONFIG_SENSORS_ISL68137) += isl68137.o > obj-$(CONFIG_SENSORS_LM25066) += lm25066.o > @@ -25,3 +26,5 @@ obj-$(CONFIG_SENSORS_TPS53679) += tps53679.o > obj-$(CONFIG_SENSORS_UCD9000) += ucd9000.o > obj-$(CONFIG_SENSORS_UCD9200) += ucd9200.o > obj-$(CONFIG_SENSORS_ZL6100) += zl6100.o > +obj-$(CONFIG_SENSORS_RAA228006) += raa228006.o > +obj-$(CONFIG_SENSORS_SN1701022) += sn1701022.o > diff --git a/drivers/hwmon/pmbus/ir38164.c b/drivers/hwmon/pmbus/ir38164.c > new file mode 100644 > index 0000000..db89473 > --- /dev/null > +++ b/drivers/hwmon/pmbus/ir38164.c > @@ -0,0 +1,72 @@ > +// SPDX-License-Identifier: GPL-2.0-or-later > +/* > + * Hardware monitoring driver for Infineon ir38164 > + * No one but you knows what that is. Please provide a little more information. Same for other drivers. > + * Copyright (C) 2019-present Lenovo > + * Is "-present" legal ? I see you and Facebook are using it, but for me it doesn't really make sense. If you want to use it, please provide a link describing the legal rationale and implications. > + * This program is free software; you can redistribute it and/or > + * modify it under the terms of the GNU General Public License > + * as published by the Free Software Foundation; either version 2 > + * of the License, or (at your option) any later version. > + * > + * This program is distributed in the hope that it will be useful, > + * but WITHOUT ANY WARRANTY; without even the implied warranty of > + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the > + * GNU General Public License for more details. > + * > + * You should have received a copy of the GNU General Public License > + * along with this program; if not, write to the Free Software > + * Foundation, Inc., 51 Franklin Street, Fifth Floor, > + * Boston, MA 02110-1301, USA. Please no such boilerplate. This is what SPDX is for. Same comments for the other drivers. > + */ > + > +#include > +#include > +#include > +#include > +#include > +#include "pmbus.h" > + > +static struct pmbus_driver_info ir38164_info = { > + .pages = 1, > + .format[PSC_VOLTAGE_IN] = linear, > + .format[PSC_VOLTAGE_OUT] = linear, > + .format[PSC_CURRENT_OUT] = linear, > + .format[PSC_POWER] = linear, > + .format[PSC_TEMPERATURE] = linear, > + > + .func[0] = PMBUS_HAVE_VIN | PMBUS_HAVE_STATUS_INPUT > + | PMBUS_HAVE_TEMP | PMBUS_HAVE_STATUS_TEMP > + | PMBUS_HAVE_VOUT | PMBUS_HAVE_STATUS_VOUT > + | PMBUS_HAVE_IOUT | PMBUS_HAVE_STATUS_IOUT > + | PMBUS_HAVE_POUT, > +}; > + > +static int ir38164_probe(struct i2c_client *client, > + const struct i2c_device_id *id) > +{ > + return pmbus_do_probe(client, id, &ir38164_info); > +} > + > +static const struct i2c_device_id ir38164_id[] = { > + {"ir38164", 0}, > + {} > +}; > + I don't immediately see why this driver is necessary. It should be sufficient to add ir38164 to pmbus.c. If that doesn't work, please explain. > +MODULE_DEVICE_TABLE(i2c, ir38164_id); > + > +/* This is the driver that will be inserted */ This is a pretty pointless comment. I would suggest to remove it. Yes, I know, you'll find it throughout the kernel. That doesn't make it better. > +static struct i2c_driver ir38164_driver = { > + .driver = { > + .name = "ir38164", > + }, > + .probe = ir38164_probe, > + .remove = pmbus_do_remove, > + .id_table = ir38164_id, > +}; > + > +module_i2c_driver(ir38164_driver); > + > +MODULE_AUTHOR("Yonghui Liu "); > +MODULE_DESCRIPTION("PMBus driver for Infineon ir38164"); > +MODULE_LICENSE("GPL"); > diff --git a/drivers/hwmon/pmbus/raa228006.c b/drivers/hwmon/pmbus/raa228006.c > new file mode 100644 > index 0000000..9aed481 > --- /dev/null > +++ b/drivers/hwmon/pmbus/raa228006.c > @@ -0,0 +1,127 @@ > +// SPDX-License-Identifier: GPL-2.0-or-later > +/* > + * Hardware monitoring driver for raa228006 > + * Here the missing information is really bad. There is almost nothing on the web describing what "raa228006" actually is. I am not inclined to accept this patch without further information. > + * Copyright (C) 2019-present Lenovo > + * > + * This program is free software; you can redistribute it and/or > + * modify it under the terms of the GNU General Public License > + * as published by the Free Software Foundation; either version 2 > + * of the License, or (at your option) any later version. > + * > + * This program is distributed in the hope that it will be useful, > + * but WITHOUT ANY WARRANTY; without even the implied warranty of > + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the > + * GNU General Public License for more details. > + * > + * You should have received a copy of the GNU General Public License > + * along with this program; if not, write to the Free Software > + * Foundation, Inc., 51 Franklin Street, Fifth Floor, > + * Boston, MA 02110-1301, USA. > + */ > + > +#include > +#include > +#include > +#include > +#include > +#include "pmbus.h" > + > +static int raa228006_probe(struct i2c_client *client, > + const struct i2c_device_id *id) > +{ > + struct pmbus_driver_info *info; > + u8 buf[I2C_SMBUS_BLOCK_MAX]; > + int ret; > + > + if (!i2c_check_functionality(client->adapter, > + I2C_FUNC_SMBUS_READ_BYTE_DATA > + | I2C_FUNC_SMBUS_READ_WORD_DATA > + | I2C_FUNC_SMBUS_READ_BLOCK_DATA)) > + return -ENODEV; > + > + /* By default this device doesn't boot to page 0, so set page 0 > + * to access all pmbus registers. > + */ Is that true or is it cut-and-paste ? > + > + i2c_smbus_write_byte_data(client, 0, 0); > + > + /* Read Manufacturer id */ > + ret = i2c_smbus_read_block_data(client, PMBUS_MFR_ID, buf); > + if (ret < 0) { > + dev_err(&client->dev, "Failed to read PMBUS_MFR_ID\n"); > + return ret; > + } > + What is the point of reading the manufacturer ID and not doing anything with it ? > + info = devm_kzalloc(&client->dev, sizeof(struct pmbus_driver_info), > + GFP_KERNEL); > + if (!info) > + return -ENOMEM; > + > + info->format[PSC_VOLTAGE_IN] = direct; > + info->format[PSC_VOLTAGE_OUT] = direct; > + info->format[PSC_CURRENT_IN] = direct; > + info->format[PSC_CURRENT_OUT] = direct; > + info->format[PSC_POWER] = direct; > + info->format[PSC_TEMPERATURE] = direct; > + info->vrm_version = vr13; > + > + info->m[PSC_VOLTAGE_IN] = 1, > + info->b[PSC_VOLTAGE_IN] = 0, > + info->R[PSC_VOLTAGE_IN] = 3, > + > + info->m[PSC_VOLTAGE_OUT] = 1, > + info->b[PSC_VOLTAGE_OUT] = 0, > + info->R[PSC_VOLTAGE_OUT] = 0, > + > + info->m[PSC_CURRENT_IN] = 1, > + info->b[PSC_CURRENT_IN] = 0, > + info->R[PSC_CURRENT_IN] = 1, > + > + info->m[PSC_CURRENT_OUT] = 1, > + info->b[PSC_CURRENT_OUT] = 0, > + info->R[PSC_CURRENT_OUT] = 2, > + > + info->m[PSC_POWER] = 1, > + info->b[PSC_POWER] = 0, > + info->R[PSC_POWER] = 3, > + > + info->m[PSC_TEMPERATURE] = 1, > + info->b[PSC_TEMPERATURE] = 0, > + info->R[PSC_TEMPERATURE] = 3, > + > + info->func[0] = PMBUS_HAVE_VIN > + | PMBUS_HAVE_VOUT | PMBUS_HAVE_IIN > + | PMBUS_HAVE_IOUT | PMBUS_HAVE_PIN > + | PMBUS_HAVE_POUT | PMBUS_HAVE_TEMP > + | PMBUS_HAVE_TEMP2 | PMBUS_HAVE_TEMP3 > + | PMBUS_HAVE_STATUS_VOUT | PMBUS_HAVE_STATUS_IOUT > + | PMBUS_HAVE_STATUS_INPUT | PMBUS_HAVE_STATUS_TEMP; > + > + info->pages = id->driver_data; > + There is nothing else but a single page. Why that complexity and not just use astatic allocation ? More cut-and-paste ? > + return pmbus_do_probe(client, id, info); > +} > + > +static const struct i2c_device_id raa228006_id[] = { > + {"raa228006", 1}, > + {} > +}; > + > +MODULE_DEVICE_TABLE(i2c, raa228006_id); > + > +/* This is the driver that will be inserted */ > +static struct i2c_driver raa228006_driver = { > + .driver = { > + .name = "raa228006", > + }, > + .probe = raa228006_probe, > + .remove = pmbus_do_remove, > + .id_table = raa228006_id, > +}; > + > +module_i2c_driver(raa228006_driver); > + > +MODULE_AUTHOR("Yonghui Liu "); > +MODULE_DESCRIPTION("PMBus driver for raa228006"); > +MODULE_LICENSE("GPL"); > diff --git a/drivers/hwmon/pmbus/sn1701022.c b/drivers/hwmon/pmbus/sn1701022.c > new file mode 100644 > index 0000000..0ba45ac > --- /dev/null > +++ b/drivers/hwmon/pmbus/sn1701022.c > @@ -0,0 +1,80 @@ > +// SPDX-License-Identifier: GPL-2.0-or-later > +/* > + * Hardware monitoring driver for sn1701022 > + * Same here. > + * Copyright (C) 2019-present Lenovo > + * > + * This program is free software; you can redistribute it and/or > + * modify it under the terms of the GNU General Public License > + * as published by the Free Software Foundation; either version 2 > + * of the License, or (at your option) any later version. > + * > + * This program is distributed in the hope that it will be useful, > + * but WITHOUT ANY WARRANTY; without even the implied warranty of > + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the > + * GNU General Public License for more details. > + * > + * You should have received a copy of the GNU General Public License > + * along with this program; if not, write to the Free Software > + * Foundation, Inc., 51 Franklin Street, Fifth Floor, > + * Boston, MA 02110-1301, USA. > + */ > + > +#include > +#include > +#include > +#include > +#include > +#include "pmbus.h" > + > +static struct pmbus_driver_info sn1701022_info = { > + .pages = 2, > + .format[PSC_VOLTAGE_IN] = linear, > + .format[PSC_VOLTAGE_OUT] = vid, > + .vrm_version = vr12, > + .format[PSC_CURRENT_OUT] = linear, > + .format[PSC_CURRENT_IN] = linear, > + .format[PSC_POWER] = linear, > + .format[PSC_TEMPERATURE] = linear, > + > + .func[0] = PMBUS_HAVE_VIN | PMBUS_HAVE_STATUS_INPUT > + | PMBUS_HAVE_TEMP | PMBUS_HAVE_STATUS_TEMP > + | PMBUS_HAVE_VOUT | PMBUS_HAVE_STATUS_VOUT > + | PMBUS_HAVE_IOUT | PMBUS_HAVE_STATUS_IOUT > + | PMBUS_HAVE_POUT, > + > + .func[1] = PMBUS_HAVE_VIN | PMBUS_HAVE_STATUS_INPUT > + | PMBUS_HAVE_TEMP | PMBUS_HAVE_STATUS_TEMP > + | PMBUS_HAVE_VOUT | PMBUS_HAVE_STATUS_VOUT > + | PMBUS_HAVE_IOUT | PMBUS_HAVE_STATUS_IOUT > + | PMBUS_HAVE_POUT, > +}; > + > +static int sn1701022_probe(struct i2c_client *client, > + const struct i2c_device_id *id) > +{ > + return pmbus_do_probe(client, id, &sn1701022_info); > +} > + > +static const struct i2c_device_id sn1701022_id[] = { > + {"sn1701022", 0}, > + {} > +}; > + > +MODULE_DEVICE_TABLE(i2c, sn1701022_id); > + > +/* This is the driver that will be inserted */ > +static struct i2c_driver sn1701022_driver = { > + .driver = { > + .name = "sn1701022", > + }, > + .probe = sn1701022_probe, > + .remove = pmbus_do_remove, > + .id_table = sn1701022_id, > +}; > + > +module_i2c_driver(sn1701022_driver); > + > +MODULE_AUTHOR("Yonghui Liu "); > +MODULE_DESCRIPTION("PMBus driver for sn1701022"); > +MODULE_LICENSE("GPL"); >