Received: by 2002:a25:7ec1:0:0:0:0:0 with SMTP id z184csp4290322ybc; Fri, 22 Nov 2019 00:00:24 -0800 (PST) X-Google-Smtp-Source: APXvYqwcE4lspD0MWAgUSxq3Dh26PVDKKJein47NRP2K2xce0Sp3On8f7rSHuNySa6WBmr079pbt X-Received: by 2002:a17:906:6403:: with SMTP id d3mr20899489ejm.258.1574409624357; Fri, 22 Nov 2019 00:00:24 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1574409624; cv=none; d=google.com; s=arc-20160816; b=nW5xVlZlJXAeiFQ6wJ4HYfsWxkXrWJLZvquA0mTMq8nzDLWQkssRhHqnslgj289NwM Q9bbWBu+vjMqbiGlptm2ahfFD7BgOd88tP5aoW4HmiM0jmGhVjMdtAjLsnLbu/x9kuf1 qBmX8yXUPTaiGueu1RrQDlHkri9enTU0rg55HmfEgBc2IEG1H6QR3cI7L6FqyMco9H20 ixwl2gPLmvbymhd00W12zdMhZNGFS8y/6Z7lo+bVYaoKmKP3yPh3vkL9652Nplq5e4Ll saRYrRQsKVQtdI/oZjbFZ7DiHY5OFwZaVwSJILNFHDUL6g+eafhvZj18zUOLJOVlcXqD hTMg== 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-transfer-encoding:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=w67p8xtPdt4/A9arfHNMFL65WBSDvCsMKuFi+DGBUsw=; b=jQ0PxEIsNMdQGgLfuz5CI3DZ5EEu0qwPebIagIfI8UXiejPExol9gALHWMAGa/eXRb dUMQf5jrM5L8mKeXXSHx/yb9rQKX6wmNCWxH6w2qaZwc2PHVt9hcYSfV4bIf1QdGmjcR d8JSndupZbH1EBM6azM/ZSRBwKp5ZKQ0CgasFjalqJfpT6Bpc49ug9om8/b/Qm3vXlwp u+i4gN0dP/w15LzrkOgLe9BtIZIO9FWsXPi+nppTbe+TJwsOKGDiJpvasiIbsa4H6teb PAX1CMs+9WZ9L0iwaZSDo1qIXWGlBVgWJNNtVFD8pt2ArEejcTn2HHb61BPi8Gfj1Mcc VIbw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=GnqUaOqh; 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=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id d7si4409079eda.429.2019.11.21.23.59.58; Fri, 22 Nov 2019 00:00:24 -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=pass header.i=@linaro.org header.s=google header.b=GnqUaOqh; 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=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726725AbfKVH6V (ORCPT + 99 others); Fri, 22 Nov 2019 02:58:21 -0500 Received: from mail-wr1-f67.google.com ([209.85.221.67]:35085 "EHLO mail-wr1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726364AbfKVH6V (ORCPT ); Fri, 22 Nov 2019 02:58:21 -0500 Received: by mail-wr1-f67.google.com with SMTP id s5so7465911wrw.2 for ; Thu, 21 Nov 2019 23:58:19 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:content-transfer-encoding:in-reply-to :user-agent; bh=w67p8xtPdt4/A9arfHNMFL65WBSDvCsMKuFi+DGBUsw=; b=GnqUaOqhAGPj1mSB54UkQHX4DC7zQbAMKGlzXTenoyFS7SJHIG7SkYKpS3E591jesy icCdTroOZhl3lQG0MC4noVz3GcrSdZ3Q0UiheNxmIgcCRphi4DzocgH6+akJKPMp54rE Zs9Tj8Bf38qwZUAhUiOtHylkX7OAbM9jDrZB5FWjgT724BNcW6t+rVhc+VS8nys/Yq+k X83hu5TH1/dV5m34mQ8wWV4jNtwESzBy6NBTfIFEUeVfVZCMG1ar96ADpDaRKm2evh/s wU/EBeaQJwE6HVdRYf8a3cY4MJpP0lZ+WrIwOTf4uiILzOSMn/yTgbEWMC2AfBJNxcrp x3+Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:content-transfer-encoding :in-reply-to:user-agent; bh=w67p8xtPdt4/A9arfHNMFL65WBSDvCsMKuFi+DGBUsw=; b=CVQGlvn1enu/R9zhusX1o6i0uOZ3xKyqAlKCKokLgxJrGZLY4HSKGvNtfvDAcZbmJq 1c2BzV+tu8WVo5qku97RS9Jr862GzX/MC+c94/d1Y59utFdDc8nWz5dtayunf6EnZ/gp GLytpVErlHGdYfXNFLceT1HxwEgpq5ww+wgzpT9cXvrKw71Me4veNnB7MtzV2/g9gdsh 6nFckAdInDVQyEfIDX7njWgtUqAIb+c8vSoVpPSCMgYKIuY1JB2a+fZrOOSaLw+S/Xws 8qrmSeUa1IMRjiDTs1BpoM+I0zN4RIxcFyaeqrEBZrD/pML4E6bc43b08D7tVgM3bqko sniw== X-Gm-Message-State: APjAAAWrRHYSLm5fyahVFC9obkJwyBp1SjcQf1ZXu5rvcKiXuIIe96iD qbCelqkFbjNJOqYKmPXEVjQFPg== X-Received: by 2002:adf:f50b:: with SMTP id q11mr16206077wro.343.1574409498689; Thu, 21 Nov 2019 23:58:18 -0800 (PST) Received: from dell ([2.27.35.135]) by smtp.gmail.com with ESMTPSA id j67sm2673521wmb.43.2019.11.21.23.58.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 21 Nov 2019 23:58:18 -0800 (PST) Date: Fri, 22 Nov 2019 07:58:04 +0000 From: Lee Jones To: Raul E Rangel Cc: enric.balletbo@collabora.com, Mauro Carvalho Chehab , Alessandro Zummo , linux-iio@vger.kernel.org, Fabien Lahoudere , Alexandre Belloni , linux-i2c@vger.kernel.org, Enrico Granata , linux-rtc@vger.kernel.org, Chanwoo Choi , Benjamin Tissoires , Benson Leung , "Gustavo A. R. Silva" , Sebastian Reichel , Douglas Anderson , Dmitry Torokhov , Jonathan Cameron , Peter Meerwald-Stadler , linux-media@vger.kernel.org, linux-pm@vger.kernel.org, Wolfram Sang , Hartmut Knaack , Alexandru M Stan , Gwendal Grignou , Akshu Agrawal , Guenter Roeck , linux-kernel@vger.kernel.org, Neil Armstrong , Lars-Peter Clausen , Hans Verkuil Subject: Re: [PATCH] platform/chrome: cros_ec: Rename cros_ec_dev to cros_ec_mfd_dev Message-ID: <20191122075804.GB3296@dell> References: <20191121164458.1.Ie5c276b95210779fc2ca5651e46552236795b6b9@changeid> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20191121164458.1.Ie5c276b95210779fc2ca5651e46552236795b6b9@changeid> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, 21 Nov 2019, Raul E Rangel wrote: > It's very confusing having cros_ec_dev and cros_ec_device. This makes it > clear you are dealing with the mfd device. An MFD isn't really a thing. It's a Linuxisum that doesn't really describe anything meaningful. IMHO it would make more sense to follow the same hierarchical structure that platform devices use: s/cros_ec_mfd_dev/cros_ec_parent/ > Signed-off-by: Raul E Rangel > --- > This is based on top of the i2c acpi tunnel patches: > https://lore.kernel.org/patchwork/project/lkml/list/?series=419791 > > drivers/i2c/busses/i2c-cros-ec-tunnel.c | 2 +- > drivers/iio/accel/cros_ec_accel_legacy.c | 2 +- > .../common/cros_ec_sensors/cros_ec_sensors.c | 2 +- > .../cros_ec_sensors/cros_ec_sensors_core.c | 2 +- > .../cros_ec_sensors/cros_ec_sensors_ring.c | 2 +- > drivers/iio/light/cros_ec_light_prox.c | 2 +- > drivers/iio/pressure/cros_ec_baro.c | 2 +- > .../media/platform/cros-ec-cec/cros-ec-cec.c | 2 +- > drivers/mfd/cros_ec_dev.c | 14 ++++----- > drivers/platform/chrome/cros_ec_chardev.c | 21 +++++++------- > drivers/platform/chrome/cros_ec_debugfs.c | 16 +++++----- > drivers/platform/chrome/cros_ec_lightbar.c | 29 ++++++++++--------- > drivers/platform/chrome/cros_ec_pd_sysfs.c | 6 ++-- > drivers/platform/chrome/cros_ec_pd_update.c | 20 ++++++------- > drivers/platform/chrome/cros_ec_sysfs.c | 16 +++++----- > drivers/platform/chrome/cros_ec_vbc.c | 8 ++--- > drivers/platform/chrome/cros_usbpd_logger.c | 6 ++-- > drivers/power/supply/cros_usbpd-charger.c | 6 ++-- > drivers/rtc/rtc-cros-ec.c | 2 +- > include/linux/mfd/cros_ec.h | 8 ++--- > .../linux/platform_data/cros_ec_pd_update.h | 4 +-- > 21 files changed, 87 insertions(+), 85 deletions(-) -- Lee Jones [李琼斯] Linaro Services Technical Lead Linaro.org │ Open source software for ARM SoCs Follow Linaro: Facebook | Twitter | Blog