From patchwork Mon Feb 12 17:01:34 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andy Shevchenko X-Patchwork-Id: 199934 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:bc8a:b0:106:860b:bbdd with SMTP id dn10csp49108dyb; Mon, 12 Feb 2024 09:07:12 -0800 (PST) X-Google-Smtp-Source: AGHT+IGM3sfSK5tjHy37I0fkycn0dP25qltJJTxIRsRRMAVbjQndZKExc+PQR5eiRhUF9ccOKgSN X-Received: by 2002:a05:6102:5128:b0:46e:ba1f:a75a with SMTP id bm40-20020a056102512800b0046eba1fa75amr319384vsb.0.1707757632233; Mon, 12 Feb 2024 09:07:12 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707757632; cv=pass; d=google.com; s=arc-20160816; b=ffgIy4qdyRhv+NPnvz7NHirFEKvCwlbv9EjU7wekHhR8O8nFSGk03XnOcQVdfMflxQ mu93+fFZAc7qn90MruPaRQaF+BPB6VFDa/s1vIOqwRZU2VfX9wF9irLNWz2O/gWySZaA Doh1eWVTgabwTFnnd/hhaph1e8vUhebZu3AfOtY+R1vV261qhwCFmlAtg9hKZxuXLudd qZE3HK+HiNU0fCxqTfTCXYJiXwzU4/62Jxw6JH3Dce3mbdfSARlMRjQ6cKM+JMEz2QtU swMTeOXX1RMl8zLFLD3A097AtImPKaKe0zME6CmYwDFs4b0e2SxE+fFryGQHYE/035yX 99Xg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=Y1OxZfwbBEdkQNduZ+UqsCtkUK0BuohR4E0Vvham6lo=; fh=/4HG2ot85cwmhvjE6R4J3N8e7HRR7XjtzdU2RLo+tAQ=; b=GgxQqypKQvxKuzrYBeG4+05JF/AgUlRl7JwT7Pka75snCeKcDb/r3f+TSQT4v/2L92 2Vu090zt0HNkkLdgL9j0MMJ54fiH2F1eSioHL0j740G37E/SKdnk5Mpen1KJNuFjt30R 8uXll3o83vIjaKGpnQYRp1531qYLtD5RzjXZqlR37RWEYcozVvvYdyooIAb3KzHu3Hef eoHpKLsNBPQLWQmIMm3vvYRArjjKvyxMk1LAn+SvtCPq01X5tjDNkgvm3GaVXMN+40IA 68/oGypRV4/dDUeNxzGyMznauQKdhf3lDvphQYXky9E7SEaXBwGlBy44gVFQiq5kjy1W FYHw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=A25fG6PI; arc=pass (i=1 dkim=pass dkdomain=intel.com dmarc=pass fromdomain=linux.intel.com); spf=pass (google.com: domain of linux-kernel+bounces-62041-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-62041-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com X-Forwarded-Encrypted: i=2; AJvYcCXCwPZ0ZprSc5ch9uVhZYBnH21qpJA9S6E+dWH9le00GAXKuPa7t5lB/Ow/PSApJMzxQU3XlmqHChFifvuuzrgnyIWK6g== Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id m8-20020a67bb08000000b0046b33badcf3si720274vsn.792.2024.02.12.09.07.12 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 12 Feb 2024 09:07:12 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-62041-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=A25fG6PI; arc=pass (i=1 dkim=pass dkdomain=intel.com dmarc=pass fromdomain=linux.intel.com); spf=pass (google.com: domain of linux-kernel+bounces-62041-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-62041-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 052481C21BA8 for ; Mon, 12 Feb 2024 17:07:12 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id EF4A745BFC; Mon, 12 Feb 2024 17:04:52 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="A25fG6PI" Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.10]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 946363FB1F; Mon, 12 Feb 2024 17:04:48 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.175.65.10 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707757490; cv=none; b=nj5TVjaJJCNU9DO3q+h8Z+jWius5BALxS0vGsdflHafzcnDs7ZM7PAOtJj4SwQX7hNPIr3qiJgvKpIWUkGcNU08AR6Q+LzIoD4va1GCyY/zSeM3eh752xxPJVVHz64Ujr3h/+G9vpVG5zWgZ5vYgalcV9i1+09AWQca1IB742/k= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707757490; c=relaxed/simple; bh=x8TByPmOrQ+gMAIIaoMyZZvfiNw4po8E/dT9novu62c=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=tX5/9Wu/tVFGBTRY/QXm/G+Zy81B/70aadyhvJ7x4xQQNZGENrc/PjkUKz8ogzdGrC7Z9R8BAk6P6YJLyem8NeSC/8+rKYwrqIkxOVPFeg0Ya7lgjDsFXS0K6EbgxGm6e02Q0kXjw4mNcjgPj1cXpSvM4t4UwDxXrzAcV1vdzcU= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com; spf=none smtp.mailfrom=linux.intel.com; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b=A25fG6PI; arc=none smtp.client-ip=198.175.65.10 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=linux.intel.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1707757489; x=1739293489; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=x8TByPmOrQ+gMAIIaoMyZZvfiNw4po8E/dT9novu62c=; b=A25fG6PId2B6nwDtMnvawUaaTLhcRTGYoUkAeypqaZbKso93/mihPwBx kDKSpdeLCor/aL6ryPOPQQ3P8pYlUj2nZxP7OJQtxT5gCaHNZGfz/exkN xCP+dOkd1PaGRv5VS4NeVrGuLXOUjcSBpTQusvpRVQNG/QxMIPW7I2oWM JYirSHIeI5SCsyqpivT3H0R5VYqklDms5xsHB9cyofBGY9BaD0SrBlkGH f0qIghZHHU7BBNuST1+uNMwKuewdvG5Cegu2JllCpfCIhu9CLOr6lI/vL zGNC69M5YstUFYzim5MMPcjSAEFWW0HBHKycFF3Qmy9v4AyYfdSR7M6Q1 w==; X-IronPort-AV: E=McAfee;i="6600,9927,10982"; a="19153170" X-IronPort-AV: E=Sophos;i="6.06,264,1705392000"; d="scan'208";a="19153170" Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by orvoesa102.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 12 Feb 2024 09:04:47 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10982"; a="935116808" X-IronPort-AV: E=Sophos;i="6.06,264,1705392000"; d="scan'208";a="935116808" Received: from black.fi.intel.com ([10.237.72.28]) by fmsmga001.fm.intel.com with ESMTP; 12 Feb 2024 09:04:43 -0800 Received: by black.fi.intel.com (Postfix, from userid 1003) id 90163A1; Mon, 12 Feb 2024 19:04:42 +0200 (EET) From: Andy Shevchenko To: Andy Shevchenko , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Andy Shevchenko , Geert Uytterhoeven , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Robin van der Gracht , Paul Burton Subject: [PATCH v2 01/15] auxdisplay: img-ascii-lcd: Make container_of() no-op for struct linedisp Date: Mon, 12 Feb 2024 19:01:34 +0200 Message-ID: <20240212170423.2860895-2-andriy.shevchenko@linux.intel.com> X-Mailer: git-send-email 2.43.0.rc1.1.gbec44491f096 In-Reply-To: <20240212170423.2860895-1-andriy.shevchenko@linux.intel.com> References: <20240212170423.2860895-1-andriy.shevchenko@linux.intel.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1790713667186223654 X-GMAIL-MSGID: 1790713667186223654 Move embedded struct linedisp member to make container_of() no-op. Signed-off-by: Andy Shevchenko Reviewed-by: Geert Uytterhoeven --- drivers/auxdisplay/img-ascii-lcd.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/auxdisplay/img-ascii-lcd.c b/drivers/auxdisplay/img-ascii-lcd.c index 56efda0740fb..09014ada38bd 100644 --- a/drivers/auxdisplay/img-ascii-lcd.c +++ b/drivers/auxdisplay/img-ascii-lcd.c @@ -32,21 +32,21 @@ struct img_ascii_lcd_config { /** * struct img_ascii_lcd_ctx - Private data structure + * @linedisp: line display structure * @base: the base address of the LCD registers * @regmap: the regmap through which LCD registers are accessed * @offset: the offset within regmap to the start of the LCD registers * @cfg: pointer to the LCD model configuration - * @linedisp: line display structure * @curr: the string currently displayed on the LCD */ struct img_ascii_lcd_ctx { + struct linedisp linedisp; union { void __iomem *base; struct regmap *regmap; }; u32 offset; const struct img_ascii_lcd_config *cfg; - struct linedisp linedisp; char curr[] __aligned(8); };