Received: by 2002:a05:6a10:2726:0:0:0:0 with SMTP id ib38csp748743pxb; Tue, 5 Apr 2022 21:37:20 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw0qY2gQSbEIDBw9qtyYWE5NwTxsEgz2hp+HO0owD6vONz7kSDlik/xBuQzbkd9POQTA1s2 X-Received: by 2002:a63:2683:0:b0:382:65ea:d5aa with SMTP id m125-20020a632683000000b0038265ead5aamr5520714pgm.579.1649219840263; Tue, 05 Apr 2022 21:37:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1649219840; cv=none; d=google.com; s=arc-20160816; b=y8YMpcWNNsdYcM4PHZ2felfTLYygaS4CWI6niGqHGrg+KutmK/Qfim2SLMw6JWsHih GuFMmN6GRlCQ2v4PUJSfWHCJkhgIz2ETucK4Tr4IO+/sieIewyzXQDIzbuMjVYksgFiW 5O0hFzbQqYE/fZIqdPUBSCEvEECsoDlTDloGNKqN/ipiuozJD0lzRBghrPCkhDi5HdTV mNndEvCSZFgDB8LVajcy7BDGQNq7WMQRKVMLCXTUXPpfVFUeqpQJoJT6J+y3CaCyDGyB 2txhtpH8l68rv2XByvjX/w8MkMiuagGUewo6+xL7jmcV9ofmizCbQ9BI75gqK53MKokQ 24ig== 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=gmcAUxEItDd5JMbqNnG3k3TzwUdP1A7OEOCZBiRvP1k=; b=pU+Ms04CpSZ6Nkf/23ZtAxzyHHDjRkQT7ieE7y/aY5cAg9Du84jqNxOxfD+tI+AeEu YUKHemxkLV5QM20j98oHyjPrFDxVLNZBr20RPXddixlS7qr06MbKT+1MgDcnFs/BpBbV xvs/cAirP9RQrGqsuhsYNQU+fpiwv6j0jg+RTk6R5LLGgzv8xMwFnivMNhDIMl+VCS60 0umS51PfVAOaJ9O9r9J2EJnTKHaGq3QqO5rnQBJQlqsKvqMTh/BP1MDHfb2clwtBGdfh kkaWUo7FM+iTIAm/vEBbq/yUjsoU50jgNvcMwGJ5pWUY19ASjo5/mCOlRc7Rd8mXuPdD N6hg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=DSeqaRiT; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id u6-20020a62ed06000000b004fa88829324si13480168pfh.158.2022.04.05.21.37.19 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 05 Apr 2022 21:37:20 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=DSeqaRiT; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 2D372AAC81; Tue, 5 Apr 2022 20:04:00 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S244472AbiDEM4m (ORCPT + 99 others); Tue, 5 Apr 2022 08:56:42 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60308 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S243577AbiDEJPX (ORCPT ); Tue, 5 Apr 2022 05:15:23 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 79374954B5; Tue, 5 Apr 2022 02:01:27 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 0966461571; Tue, 5 Apr 2022 09:01:27 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 17B4AC385A1; Tue, 5 Apr 2022 09:01:25 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1649149286; bh=B4ZcG0QXqpeghTBVKDIRTsP/36gZD9K13i5RowxWSZc=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=DSeqaRiTyTuqy2lo7B63LxfFpRSM4oCXxJjpFjpjalXMmaAzjzIPAHuNUB6VoQc3K UJ3VeBfnV1wOr5BxMSjz0AG5Qn/BvZvKXYPG5rCTSpAPpwU37CO6zlBlU6MG5L6euj 9hh6ThP8PoVW1pluWufv+hvhkNAXhqmemf8QIwPU= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Geert Uytterhoeven , Sasha Levin Subject: [PATCH 5.16 0660/1017] pinctrl: renesas: r8a77470: Reduce size for narrow VIN1 channel Date: Tue, 5 Apr 2022 09:26:13 +0200 Message-Id: <20220405070413.873755034@linuxfoundation.org> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220405070354.155796697@linuxfoundation.org> References: <20220405070354.155796697@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Geert Uytterhoeven [ Upstream commit 9e04a0eda84fccab0ac22a33825ad53f47c968c7 ] The second video-in channel on RZ/G1C has only 12 data lanes, but the pin control driver uses the vin_data union, which is meant for 24 data lanes, thus wasting space. Fix this by using the vin_data12 union instead. This reduces kernel size by 96 bytes. Fixes: 50f3f2d73e3426ba ("pinctrl: sh-pfc: Reduce kernel size for narrow VIN channels") Signed-off-by: Geert Uytterhoeven Link: https://lore.kernel.org/r/52716fa89139f6f92592633edb52804d4c5e18f0.1640269757.git.geert+renesas@glider.be Signed-off-by: Sasha Levin --- drivers/pinctrl/renesas/pfc-r8a77470.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/pinctrl/renesas/pfc-r8a77470.c b/drivers/pinctrl/renesas/pfc-r8a77470.c index e6e5487691c1..cf7153d06a95 100644 --- a/drivers/pinctrl/renesas/pfc-r8a77470.c +++ b/drivers/pinctrl/renesas/pfc-r8a77470.c @@ -2140,7 +2140,7 @@ static const unsigned int vin0_clk_mux[] = { VI0_CLK_MARK, }; /* - VIN1 ------------------------------------------------------------------- */ -static const union vin_data vin1_data_pins = { +static const union vin_data12 vin1_data_pins = { .data12 = { RCAR_GP_PIN(3, 1), RCAR_GP_PIN(3, 2), RCAR_GP_PIN(3, 3), RCAR_GP_PIN(3, 4), @@ -2150,7 +2150,7 @@ static const union vin_data vin1_data_pins = { RCAR_GP_PIN(3, 15), RCAR_GP_PIN(3, 16), }, }; -static const union vin_data vin1_data_mux = { +static const union vin_data12 vin1_data_mux = { .data12 = { VI1_DATA0_MARK, VI1_DATA1_MARK, VI1_DATA2_MARK, VI1_DATA3_MARK, -- 2.34.1