Received: by 2002:a05:6a10:9e8c:0:0:0:0 with SMTP id y12csp493910pxx; Wed, 28 Oct 2020 09:34:49 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw5JTF2k5eZtAxWYnNZ02i+G7U2C9llWoTXSU5qkArlMVJIFr2/dc9vsV/B+A9nXg956xBj X-Received: by 2002:a17:906:abce:: with SMTP id kq14mr8755007ejb.411.1603902889358; Wed, 28 Oct 2020 09:34:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1603902889; cv=none; d=google.com; s=arc-20160816; b=kV7Op3iFZvK6aKm56BglIck4jIdv7MetohsaJrlrUo50RxOQDcgikl8EHGfkYdVPx+ 9bZ/uWuqaKn24yF/q3x2xH5T5eBj2sjvM180YE+H7x9G8gNI25Jx57CbMQTlBmlAvoYN 2CGNXcHD4DM9B3DCuwQtV1/ewR6Vt0Mu1pblkszS8+fznU8PJUVp/CAlkhSiLqRk+92P 76fXB50FOarhWp2rpnzeGOc6GHV1JUb00gpgyr2aHPlHwfB4SMOFZF3OtcvelAn+KyQL LwARoANjhbrfg7kJUhoI56QXdCgDFIYU/EZ3hLov3+ZIWS3wo5qfpgRkm3zTWhwq2bmT oY8Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=hSyVXy5quFeFwR94r2sgvmiqueI1HVld1rrAL/HYKaw=; b=XiShyQPnTN4A8YbxCjS2BpI75iN/+OKGJ9FAQDXckivzHZE07X/G58yyeqcv2Irk1v w1rGn56NhrJV3hAcC82so5uPFvTbuoIUsoiW/Qwtm5JUpnHjZnoDAin2MaxmggC+8ePY Gjw7XJOpLVEBNFYCcmuVhLaqSRzqvYFG2Ub1c1f5TqlZfP6iJro/w0gSfxU1y2Zf3lp/ ZzIVC7DZ+2B4RoWxGMbzndpj6d5xJF0OxlMw36Imb+uadxMSaWKmnuhZC9MK6j5udt+K 5DZD5Rg9AwngfWb+j8FKZthELqoCPAowglxnYx/1gB8OI2oQkqLFG7D9ZNdrWh94eCfG bX0g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=RDvTwZCg; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id g27si3882348ejd.639.2020.10.28.09.34.25; Wed, 28 Oct 2020 09:34:49 -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=@kernel.org header.s=default header.b=RDvTwZCg; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1817173AbgJ0ROG (ORCPT + 99 others); Tue, 27 Oct 2020 13:14:06 -0400 Received: from mail.kernel.org ([198.145.29.99]:60406 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1784047AbgJ0O6y (ORCPT ); Tue, 27 Oct 2020 10:58:54 -0400 Received: from localhost (83-86-74-64.cable.dynamic.v4.ziggo.nl [83.86.74.64]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 00BB920715; Tue, 27 Oct 2020 14:58:52 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1603810733; bh=69E8Seyv6a86xHAc8p4MZ5BoA0eDue29r0e7PxX8kcw=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=RDvTwZCgyQ4J7m4y5emDB8TbWHytNgmODHz+cj3QK5/63LdCkUERzT/07kVWVoq+U z/2Pu2eAr8EDgzsMMvEncaNvmq5Y6LQ6qjzRHluW1qSKrdwPuWyLxZhd0VoQjtCnhb xnC8aIb7FxD8PnNvG7stLP6lE7IeSDE81vKD1X0c= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Thomas Preston , Andy Shevchenko , Linus Walleij , Sasha Levin Subject: [PATCH 5.8 213/633] pinctrl: mcp23s08: Fix mcp23x17_regmap initialiser Date: Tue, 27 Oct 2020 14:49:16 +0100 Message-Id: <20201027135532.672576844@linuxfoundation.org> X-Mailer: git-send-email 2.29.1 In-Reply-To: <20201027135522.655719020@linuxfoundation.org> References: <20201027135522.655719020@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Thomas Preston [ Upstream commit b445f6237744df5e8d4f56f8733b2108c611220a ] The mcp23x17_regmap is initialised with structs named "mcp23x16". However, the mcp23s08 driver doesn't support the MCP23016 device yet, so this appears to be a typo. Fixes: 8f38910ba4f6 ("pinctrl: mcp23s08: switch to regmap caching") Signed-off-by: Thomas Preston Reviewed-by: Andy Shevchenko Link: https://lore.kernel.org/r/20200828213226.1734264-2-thomas.preston@codethink.co.uk Signed-off-by: Linus Walleij Signed-off-by: Sasha Levin --- drivers/pinctrl/pinctrl-mcp23s08.c | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/drivers/pinctrl/pinctrl-mcp23s08.c b/drivers/pinctrl/pinctrl-mcp23s08.c index 151931b593f6e..5641df67bcf55 100644 --- a/drivers/pinctrl/pinctrl-mcp23s08.c +++ b/drivers/pinctrl/pinctrl-mcp23s08.c @@ -87,7 +87,7 @@ const struct regmap_config mcp23x08_regmap = { }; EXPORT_SYMBOL_GPL(mcp23x08_regmap); -static const struct reg_default mcp23x16_defaults[] = { +static const struct reg_default mcp23x17_defaults[] = { {.reg = MCP_IODIR << 1, .def = 0xffff}, {.reg = MCP_IPOL << 1, .def = 0x0000}, {.reg = MCP_GPINTEN << 1, .def = 0x0000}, @@ -98,23 +98,23 @@ static const struct reg_default mcp23x16_defaults[] = { {.reg = MCP_OLAT << 1, .def = 0x0000}, }; -static const struct regmap_range mcp23x16_volatile_range = { +static const struct regmap_range mcp23x17_volatile_range = { .range_min = MCP_INTF << 1, .range_max = MCP_GPIO << 1, }; -static const struct regmap_access_table mcp23x16_volatile_table = { - .yes_ranges = &mcp23x16_volatile_range, +static const struct regmap_access_table mcp23x17_volatile_table = { + .yes_ranges = &mcp23x17_volatile_range, .n_yes_ranges = 1, }; -static const struct regmap_range mcp23x16_precious_range = { +static const struct regmap_range mcp23x17_precious_range = { .range_min = MCP_GPIO << 1, .range_max = MCP_GPIO << 1, }; -static const struct regmap_access_table mcp23x16_precious_table = { - .yes_ranges = &mcp23x16_precious_range, +static const struct regmap_access_table mcp23x17_precious_table = { + .yes_ranges = &mcp23x17_precious_range, .n_yes_ranges = 1, }; @@ -124,10 +124,10 @@ const struct regmap_config mcp23x17_regmap = { .reg_stride = 2, .max_register = MCP_OLAT << 1, - .volatile_table = &mcp23x16_volatile_table, - .precious_table = &mcp23x16_precious_table, - .reg_defaults = mcp23x16_defaults, - .num_reg_defaults = ARRAY_SIZE(mcp23x16_defaults), + .volatile_table = &mcp23x17_volatile_table, + .precious_table = &mcp23x17_precious_table, + .reg_defaults = mcp23x17_defaults, + .num_reg_defaults = ARRAY_SIZE(mcp23x17_defaults), .cache_type = REGCACHE_FLAT, .val_format_endian = REGMAP_ENDIAN_LITTLE, }; -- 2.25.1