Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp804703imu; Fri, 21 Dec 2018 07:38:57 -0800 (PST) X-Google-Smtp-Source: AFSGD/UtH7OKLCtckRYZi79v5ZvJOAZqdjGCy8WQm2AHQnW71UtbtOCIZMao5UyHhaMbyp/5v9m5 X-Received: by 2002:aa7:8608:: with SMTP id p8mr3063644pfn.125.1545406737455; Fri, 21 Dec 2018 07:38:57 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1545406737; cv=none; d=google.com; s=arc-20160816; b=fiA7wehWP2TlHw3m66dVk1G7kEtUSZXzlCaj2Y1Xtr4ZPS6hrEeKEQF0WEPFT2wdOY vw17Uv0Was6YFebSl+4bQgj5gJ3yfmWvyMtruZOKyxMPPLq5LP/J7F3uo25QB87PG7SN m1NTmQ+blvqrpCXVINCDCmJQpJxzognycvvcp1aSyxFXN2WY3Qo9/XSqltygN+YgV0vM 0Ic6Nfz2pCqYpqIuvV1dJ5TTSDQVshCKsvPYsv71ix7uDRdihBvRjOQwjwf8tTiiBLlo GST3HuKlew2FIu5qHzRu8lRl5w3osl8EWsi4mfuOqzEiQK8srwEp7xuryahI/iaYlDga JK7g== 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=Waopk4QjO8yPcHQ79td8v7UwiG4yplhDOPMFZ0uxAYg=; b=nw4DnejDkYtMBW6BAxc0aA1BFAjxIDR6Hchi1z50SVwUQjvOTeg4I+LN/ej9BnnjsZ ijrifhSlRvUuvxssv+RRfu31Lnabev2gu6ghwV4H/4XgFtCbULyQsssCPHodWoXTtO2p W2QyTDZfOLxn5o9y+qm0Z3HYC3AH5FMo5tKmIgbr4lGjMH+w7CpjfD80s0HvjraQRsL5 rfdvQz/2FNTLk30/dZLVwxq/xq1jVIbEvir1fywz9VOdi7l62m+3KjtRmMtM/n1Iac15 N0+SqtIocHR3JzeQBolBgnMyo4JRDyj5Th+TeGYd9X3QKr3wTb0/BSj1glMHNzJZLpt6 NBVA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Z0pMG+9x; 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 j91si22244603pld.395.2018.12.21.07.38.41; Fri, 21 Dec 2018 07:38:57 -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=Z0pMG+9x; 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 S1730836AbeLUJIM (ORCPT + 99 others); Fri, 21 Dec 2018 04:08:12 -0500 Received: from mail-wr1-f65.google.com ([209.85.221.65]:43915 "EHLO mail-wr1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729404AbeLUJIM (ORCPT ); Fri, 21 Dec 2018 04:08:12 -0500 Received: by mail-wr1-f65.google.com with SMTP id r10so4399674wrs.10 for ; Fri, 21 Dec 2018 01:08:10 -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=Waopk4QjO8yPcHQ79td8v7UwiG4yplhDOPMFZ0uxAYg=; b=Z0pMG+9xdjfsJcCTWhL6zmrzyUhUj7Ioj6JT0NMhu/9nvJXd7UK+P4msR5V5AbeMAX fXwga9Wszxqo9eGi6RhsU6WtHUK+VAAtWwEGBcpTxBXam5uxF70KIcq1OGOynGnC5UVY /SbV68JzPgmK0/OidxyKFq97JZ3VLnIinpZNI= 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=Waopk4QjO8yPcHQ79td8v7UwiG4yplhDOPMFZ0uxAYg=; b=B7wiCSKorIq+XqAQDIAMCfGzVZvDyQxfWf+lsxQMVEiZrm7k9SVLkEKS6iBKP/Dl7l ZGcFY/IwvBqIim2RI0GWL8VrlNPoOGBy4ueURY30DwSDClKX68ha1F2wxF46amqg4YtU GBhftV89tZhsP1lRdVXwmNXaRkOlkS8QOuIyNfHxtXzqv4ReIq4g21UOJY8kt+O/NjGi sOQ7052JqdzTKdjNzbzkGx6lK3mhmozZm+7y3xxsz3YYUdKInmiOaunmH+33MBdg8eaY ShAVRtG4APyLMf+QaPrugjQ9eClPjt4vWo5121aXk1zdIu+Xrq073jYHTELmak5x9EkR SzFQ== X-Gm-Message-State: AJcUukfAIwxX2FrOybqv8FBSA1jdPhZn/fJPD4UV+eeUr2yTLrDGjoyg 7ud1ZtwwDyXG30KXVzHYc+eQPQ== X-Received: by 2002:adf:82f1:: with SMTP id 104mr1709683wrc.131.1545383289419; Fri, 21 Dec 2018 01:08:09 -0800 (PST) Received: from dell ([95.149.164.119]) by smtp.gmail.com with ESMTPSA id g129sm10449342wmf.39.2018.12.21.01.08.08 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 21 Dec 2018 01:08:08 -0800 (PST) Date: Fri, 21 Dec 2018 09:08:07 +0000 From: Lee Jones To: Enric Balletbo i Serra Cc: gwendal@chromium.org, drinkcat@chromium.org, linux-kernel@vger.kernel.org, groeck@chromium.org, kernel@collabora.com, bleung@chromium.org Subject: Re: [PATCH v5 1/7] mfd / platform: cros_ec: use devm_mfd_add_devices Message-ID: <20181221090807.GS4497@dell> References: <20181212173402.27086-1-enric.balletbo@collabora.com> <20181212173402.27086-2-enric.balletbo@collabora.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20181212173402.27086-2-enric.balletbo@collabora.com> User-Agent: Mutt/1.9.4 (2018-02-28) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, 12 Dec 2018, Enric Balletbo i Serra wrote: > Use devm_mfd_add_devices() for adding cros-ec core MFD child devices. This > reduces the need of remove callback from platform/chrome for removing the > MFD child devices. > > Signed-off-by: Enric Balletbo i Serra > Reviewed-by: Guenter Roeck > --- > > Changes in v5: None > Changes in v4: > - Added Reviewed-by tags. > - Moved mfd_remove_devices to another patch, it's already queued in Lee's tree. > - Removed patch 8 from the series, was a fix and it's already applied in current mainline. > > Changes in v3: > - Removed cros_ec_remove from include file. > > Changes in v2: > - Use devm only for the cros-ec core. > > drivers/mfd/cros_ec.c | 14 +++----------- > drivers/platform/chrome/cros_ec_i2c.c | 10 ---------- > drivers/platform/chrome/cros_ec_lpc.c | 4 ---- > drivers/platform/chrome/cros_ec_spi.c | 11 ----------- > include/linux/mfd/cros_ec.h | 10 ---------- > 5 files changed, 3 insertions(+), 46 deletions(-) For my own reference: Acked-for-MFD-by: Lee Jones -- Lee Jones [李琼斯] Linaro Services Technical Lead Linaro.org │ Open source software for ARM SoCs Follow Linaro: Facebook | Twitter | Blog