From patchwork Fri Oct 18 12:56:04 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 176823 Delivered-To: patch@linaro.org Received: by 2002:a92:7e96:0:0:0:0:0 with SMTP id q22csp820724ill; Fri, 18 Oct 2019 05:56:17 -0700 (PDT) X-Google-Smtp-Source: APXvYqwMKiV4fkNNlOskIMGx8M37ALwt1fqDAnAO0mxLRKmWxXBHF+Tsf5g0gpox7GPzqMxgNDIW X-Received: by 2002:a05:6402:895:: with SMTP id e21mr9274553edy.72.1571403377344; Fri, 18 Oct 2019 05:56:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1571403377; cv=none; d=google.com; s=arc-20160816; b=WS9rUDvHCh0i28xehwHCQPbRB1j89NPO8HDFVUfK7FilEeGRxI5TJSoYkyTsZ6Ucvw 4oN61gjdFcj0SkbI+kV1z3ORjKp2D84IOI6J9a221G8Y0jVuH9cMyeG9268e8J55F0de y+dBSg8KAsN0RRfP/9ELJ471mfdiZ8VIgDgYLMmfVnKK2LoufGvwanc42sV7F33vhXNE 6t1cEnjwCjlnhbKBcbsz8f7C/k7kVXeqlYJW2FuC3B+z2Tqg5MWGL7pQaMuOdzGjMCxm GokwBbkYij1KcyalbCfxDt85ZY8F7d23eMhVJWDehtqm7yq3AIGZoRyybOcGbDEaW3xf bn8w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :dkim-signature; bh=CD+bty2JgPn943TXaARoc4H7hkdb+h7lncGCHmaCcN0=; b=eKPuHoFQMD/Gd1VKXQtzBUAt+PXbkSNP0VtR4BkY4oP+YjiDxDMh0t92t97UgJxap1 Rzm0ciifplu578SofT5tsmdRme5oyWYTvx8jL72wsX8Ry7XBw1k+dFPsRTxTTxZbobRZ M4HRdLDcP9Dr2x0wfiWrDcntUmQ3JMU05+uq3cVAtf5SxkrEcAUg4IW9HIJCkp9rCw5J J9YZwhkPUJviA8BLynf0GrlrV8qr+zLAiXGnEJO913/eY1f8xB8iZHKmxhsTTJfzIRd8 aLKaQR3VGhB9KMf8pCYu2wG14MKkefxsW5axyK8bSglpwkZB0T5B0suv3+TO6C9SZWGi VMKQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=EaxXB8yx; 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 j47si3670642ede.117.2019.10.18.05.56.17; Fri, 18 Oct 2019 05:56:17 -0700 (PDT) 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=EaxXB8yx; 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 S2410135AbfJRM4N (ORCPT + 26 others); Fri, 18 Oct 2019 08:56:13 -0400 Received: from mail-wr1-f65.google.com ([209.85.221.65]:34821 "EHLO mail-wr1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727993AbfJRM4N (ORCPT ); Fri, 18 Oct 2019 08:56:13 -0400 Received: by mail-wr1-f65.google.com with SMTP id l10so5747204wrb.2 for ; Fri, 18 Oct 2019 05:56:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id; bh=CD+bty2JgPn943TXaARoc4H7hkdb+h7lncGCHmaCcN0=; b=EaxXB8yxpjgjqwE0bD1jv7eEoqqaOonz1N2djpz721OFIF0SOlfI2YHO/fm1KnHC4r E1soMZAW3KI1TxX1d9HBNyCSz/R368Z52LRPE6EQHZdTkLOTfghR6vtw2Waes46H4NQU EWUtsUBLSXS2wgkez92ZoF5W4Amxmyu2a5iZCIpDHeyGtcmfXqHXtyTmfDEKvv0Do/Wb AdypkdXk1CaPdm2bHf91rOLbVNY+s5kVI0C7B+93s0pwpwb04GrhekXCaEFBJlA0uuIb LQlIOFFhfzXzRiV+OQJmj/pVLVG+j7hD1TWykpN6gz0WRFfli4EB1Dk8z6N1S4iJoJF2 VvmA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=CD+bty2JgPn943TXaARoc4H7hkdb+h7lncGCHmaCcN0=; b=DSdEEHgxDEdeONvfV21EEcD1SNgIw64dxUTudNHUvQZiOaoNNWG3SU7YBSAliys097 pbvQO4fLqib4GCC1VN+kVLr8yNzPEaHrGy6nNm2RqIGT8NMrEZKpTIlwmKEMDKGij+6m ccKCCucJ9tnqHLBp1Xs7wh6fl5Jp76vX5trR/o0DBbBbPk+Z63UWFR6nPzimRxn/NnGZ NMxnYaMc9DT+uLGySxKkNh6Xl+yAIRR5Ju1kwSKQ9ytnxvnvUVPO8QpCFqckiqZQeHlQ /DSOQ2/kJauK1k8t5DPU/pMOBBov9xGpBBZNZMfm60ztRq7+gQs1clv/og5KVo3TmTDz ffwQ== X-Gm-Message-State: APjAAAUMlCEp325E1sGvyaK67QhxD5GTSpVbECbxyn0kcL277B4YVLSZ AyBbk8Yb9lHILUIPwxW9Q5rciQ== X-Received: by 2002:a5d:488f:: with SMTP id g15mr8279585wrq.9.1571403370810; Fri, 18 Oct 2019 05:56:10 -0700 (PDT) Received: from localhost.localdomain ([95.149.164.47]) by smtp.gmail.com with ESMTPSA id q14sm6058491wre.27.2019.10.18.05.56.10 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 18 Oct 2019 05:56:10 -0700 (PDT) From: Lee Jones To: broonie@kernel.org, linus.walleij@linaro.org, daniel.thompson@linaro.org, arnd@arndb.de Cc: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, dilinger@queued.net, Lee Jones Subject: [PATCH 0/4] Remove mfd_clone_cell() from the MFD API Date: Fri, 18 Oct 2019 13:56:04 +0100 Message-Id: <20191018125608.5362-1-lee.jones@linaro.org> X-Mailer: git-send-email 2.17.1 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org mfd_clone_cell() only has one user and it quite easy to replicate using the existing MFD registration API in the traditional way. Here we convert the user and remove the superfluous helper. Lee Jones (4): mfd: cs5535-mfd: Use PLATFORM_DEVID_* defines and tidy error message mfd: cs5535-mfd: Remove mfd_cell->id hack mfd: cs5535-mfd: Register clients using their own dedicated MFD cell entries mfd: mfd-core: Remove mfd_clone_cell() drivers/mfd/cs5535-mfd.c | 70 ++++++++++++++++++++++++++-------------- drivers/mfd/mfd-core.c | 33 ------------------- include/linux/mfd/core.h | 18 ----------- 3 files changed, 45 insertions(+), 76 deletions(-) -- 2.17.1