Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp1396652pxj; Fri, 21 May 2021 13:13:20 -0700 (PDT) X-Google-Smtp-Source: ABdhPJytqiVFu+jPg7xj5ZltfUR82R0nkec6Q6WVeXWlUJ6A4hGa7cUGeaDupuGWt2L4vBSEJpX2 X-Received: by 2002:a17:907:9208:: with SMTP id ka8mr11856612ejb.71.1621628000722; Fri, 21 May 2021 13:13:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1621628000; cv=none; d=google.com; s=arc-20160816; b=ToJRk9Ww3wNj/K3U0/siwTdATCyx5chQDujFkQe5DfcWLvNY/ZhEiAxi+deFwcwbhv g9q64gJZwfAbq8IRZ04Sx5t/4JWttJ0746PRp89sdSqiK4I62Zq53hFF8KHbGYhf6XSR 2oRjls0dh3yHkvp9KxpKc/Z01zIc3qKcplBXTXq/CfaKoW8wG7j6F+myap5C8NbZ1m1z N+WDGZC3Dopb2gGdXqpL2dI43lCeWHzz8loft+Hc8SAGPYiNkTnwqrHGwxWhPT60bXxN uCuvpyavaAnq6RchckP71CEBzt3EDT4/otY/tgJPQTPSw+i7+aE5sVNR5qw5wM1ykIQO ND8g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:message-id:user-agent:references:in-reply-to :subject:cc:to:from:date:content-transfer-encoding:mime-version :dkim-signature; bh=8gCxWpqH7S6/JrTXskJUWMEZe31GUIU4AaQGJjfXmbM=; b=RVNtpkknxI+Y8V9ZGwZdlbfP6EkP9ErykTcQxUrn+bKta3bCtShGgmhfawftR8OAtw T3/Vbq1t3yuGdlBO6Tbl8nvX16EkEvrdaDzBcrCpJGACZCCH8tlJcsdnV+SikBP0pHK2 /KOvAVHfR1CKx1NA3tcMQBLs2DsjBRrfT34i8NQyEo+G427XM3Z5XqrxtFXmoY8eoVC1 PCwezgV8Bak640KYIXf0aB5UzeCcQ74obW42/4DGAdLT2DQeuQ0vDBnjAq2wYsFJmvKZ WCbSxU6Kta935+ICQjsHldqSQqLAc+0TC63eV41wVVMr0Xi5fNsahIi9JP1/vC1Hayuj 5sGw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@walle.cc header.s=mail2016061301 header.b=ep4QJlmb; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id u6si6986126edc.469.2021.05.21.13.12.57; Fri, 21 May 2021 13:13:20 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@walle.cc header.s=mail2016061301 header.b=ep4QJlmb; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231782AbhEUKVC (ORCPT + 99 others); Fri, 21 May 2021 06:21:02 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41704 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231186AbhEUKU6 (ORCPT ); Fri, 21 May 2021 06:20:58 -0400 Received: from ssl.serverraum.org (ssl.serverraum.org [IPv6:2a01:4f8:151:8464::1:2]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EDD40C061574; Fri, 21 May 2021 03:19:32 -0700 (PDT) Received: from ssl.serverraum.org (web.serverraum.org [172.16.0.2]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ssl.serverraum.org (Postfix) with ESMTPSA id 0297D2224A; Fri, 21 May 2021 12:19:29 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=walle.cc; s=mail2016061301; t=1621592370; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=8gCxWpqH7S6/JrTXskJUWMEZe31GUIU4AaQGJjfXmbM=; b=ep4QJlmbs0+gBfXsbHINRRQAmmjRnfz29yI8nFzGHFIL4BqV/NkEPJzOi2lTEkFCIe7v7r MSr66pl8jMBpswzNGb5WtIGEglZ+PzmnC+WeQBfipzgP6TO1djBsnB8twrWS8uGNUUBGiZ Le2Gg8nY/Z2PTVIInqWU/TI/sb0YEPk= MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Date: Fri, 21 May 2021 12:19:29 +0200 From: Michael Walle To: Andy Shevchenko Cc: Matti Vaittinen , Matti Vaittinen , Linus Walleij , Bartosz Golaszewski , "open list:GPIO SUBSYSTEM" , Linux Kernel Mailing List , linux-power Subject: Re: [PATCH v2 1/3] gpio: regmap: Support few IC specific operations In-Reply-To: References: <6e319c22b41747e3911c7a5cad877134cabc9231.1621577204.git.matti.vaittinen@fi.rohmeurope.com> User-Agent: Roundcube Webmail/1.4.11 Message-ID: <8c048bda0ace591d7e91c07ed9155338@walle.cc> X-Sender: michael@walle.cc Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Am 2021-05-21 12:09, schrieb Andy Shevchenko: > On Fri, May 21, 2021 at 12:53 PM Matti Vaittinen > wrote: >> Changelog v2: (based on suggestions by Michael Walle) >> - drop gpio_regmap_set_drvdata() > > But why do we have gpio_regmap_get_drvdata() and why is it different > now to the new member handling? Eg. the reg_mask_xlate() callback is just passed a "struct gpio_regmap*". If someone needs to access private data there, gpio_regmap_get_drvdata() is used. At least that was its intention. Thus I was also suggesting to use "struct gpio_regmap*" in the newer callbacks. I don't get what you mean by "different to the new member handling"? -michael