Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp5003346imu; Wed, 19 Dec 2018 04:05:47 -0800 (PST) X-Google-Smtp-Source: AFSGD/V9ixKXLdwsNc0ZhqxJH/6S+3JxPV5780KOh36DJ2OLTLqMtRbQoSBCd1ar2I4laemp+pIZ X-Received: by 2002:a17:902:bc44:: with SMTP id t4mr19133410plz.260.1545221147366; Wed, 19 Dec 2018 04:05:47 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1545221147; cv=none; d=google.com; s=arc-20160816; b=Khr3rNAzYB3xzrFGCCyBMzd32cyoaZzvc+GAYkaNY3k+9R8q8btmCvwD36LkbaYLoP +xGhlP89DRwEYu2OPXrYAQYMGFRT52ripb+4lT8nX7prndywbgPpxDTxPDdWMS4bNQJ8 yWsppyjp+J7hwd/4AbpfiqV8PlG1U1+d0wp/rjjDrOvBxwZws0oHWRkiHNZgXo+y65lT PBr8fmb1CNwc+BXB9hDrQgj0lj08UfGcUDQAKhFujCcHKRn2zONQREqPa6oYPXMh9ahg V2tufvQJBJmZx0soRP/L/YLBIi1oiZ03Fto7Wej6H0J+mBGtMIb5abTinIs/XiIbZPct STVQ== 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; bh=lmk2MrvgizD2Nqoe14Bfw5N4FzRZpc3UyxwhnF0x2ys=; b=nqSuuDoRBgyd/vdnts+aZN3GGApDfEn8IhMg9DwMzhV6jvxw7cHWQ++X0uYtrAtv97 4rj7QtOtSq+RhTV6mDAP6i5tXxF6prBmRKF+62a+00FaDf1vWac4B2SyMXO1b5GpnDoX sGgoP9RZB+LcDDpOA+TeHKBhVXRB719JTUPnhoqg0GbTyS6Jv33MokPTjmkb2TfQPqzb httmXYG5t2KPqYEfDyFNZgFEQytrfyP8h1L5c3fHsrtbMF4IVj6M32szavz0rFu3dGDt 9u9eIz38MEREI2yC+BizHs8j2XjUUzIxC799jlrrHXl2uHs6UQPArDwSY9tPFXn/AKnC FYNA== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=cirrus.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 1si15212151pld.239.2018.12.19.04.05.27; Wed, 19 Dec 2018 04:05:47 -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; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=cirrus.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727577AbeLSJRp (ORCPT + 99 others); Wed, 19 Dec 2018 04:17:45 -0500 Received: from mx0a-001ae601.pphosted.com ([67.231.149.25]:38040 "EHLO mx0b-001ae601.pphosted.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726774AbeLSJRp (ORCPT ); Wed, 19 Dec 2018 04:17:45 -0500 Received: from pps.filterd (m0077473.ppops.net [127.0.0.1]) by mx0a-001ae601.pphosted.com (8.16.0.27/8.16.0.27) with SMTP id wBJ9ANXI026208; Wed, 19 Dec 2018 03:17:44 -0600 Authentication-Results: ppops.net; spf=none smtp.mailfrom=ckeepax@opensource.cirrus.com Received: from mail3.cirrus.com ([87.246.76.56]) by mx0a-001ae601.pphosted.com with ESMTP id 2pcyw5qje2-1; Wed, 19 Dec 2018 03:17:44 -0600 Received: from EX17.ad.cirrus.com (ex17.ad.cirrus.com [172.20.9.81]) by mail3.cirrus.com (Postfix) with ESMTP id A5916611C8AC; Wed, 19 Dec 2018 03:20:40 -0600 (CST) Received: from imbe.wolfsonmicro.main (198.61.95.81) by EX17.ad.cirrus.com (172.20.9.81) with Microsoft SMTP Server id 14.3.408.0; Wed, 19 Dec 2018 09:17:42 +0000 Received: from imbe.wolfsonmicro.main (imbe.wolfsonmicro.main [198.61.95.81]) by imbe.wolfsonmicro.main (8.14.4/8.14.4) with ESMTP id wBJ9HgAS012169; Wed, 19 Dec 2018 09:17:42 GMT Date: Wed, 19 Dec 2018 09:17:42 +0000 From: Charles Keepax To: Paul Gortmaker CC: Lee Jones , , Mark Brown , Subject: Re: [PATCH 18/18] mfd: wm8400-core: Make it explicitly non-modular Message-ID: <20181219091742.GA16508@imbe.wolfsonmicro.main> References: <1545078688-21217-1-git-send-email-paul.gortmaker@windriver.com> <1545078688-21217-19-git-send-email-paul.gortmaker@windriver.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Disposition: inline In-Reply-To: <1545078688-21217-19-git-send-email-paul.gortmaker@windriver.com> User-Agent: Mutt/1.5.20 (2009-12-10) X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 priorityscore=1501 malwarescore=0 suspectscore=0 phishscore=0 bulkscore=0 spamscore=0 clxscore=1015 lowpriorityscore=0 mlxscore=0 impostorscore=0 mlxlogscore=999 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1810050000 definitions=main-1812190080 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Dec 17, 2018 at 03:31:28PM -0500, Paul Gortmaker wrote: > The Kconfig currently controlling compilation of this code is: > > drivers/mfd/Kconfig:config MFD_WM8400 > drivers/mfd/Kconfig: bool "Wolfson Microelectronics WM8400" > > ...meaning that it currently is not being built as a module by anyone. > > Lets remove the modular code that is essentially orphaned, so that > when reading the driver there is no doubt it is builtin-only. > > Since module_init was not in use by this code, the init ordering > remains unchanged with this commit. > > A trivial function rename from wm8400_module_init to the name > wm8400_driver_init is also done to reduce possible confusion. > > Also note that MODULE_DEVICE_TABLE is a no-op for non-modular code. > > We also delete the MODULE_LICENSE tag etc. since all that information > is already contained at the top of the file in the comments. > > Cc: Lee Jones > Cc: Mark Brown > Cc: patches@opensource.cirrus.com > Signed-off-by: Paul Gortmaker > Acked-by: Linus Walleij > --- > -MODULE_DEVICE_TABLE(i2c, wm8400_i2c_id); > > static struct i2c_driver wm8400_i2c_driver = { > .driver = { > @@ -161,7 +160,7 @@ static struct i2c_driver wm8400_i2c_driver = { > }; > #endif Do we not want to add suppress_bind_attrs into the i2c_driver struct here? Thanks, Charles