Received: by 2002:a05:7412:3b8b:b0:fc:a2b0:25d7 with SMTP id nd11csp2576936rdb; Mon, 12 Feb 2024 09:06:26 -0800 (PST) X-Google-Smtp-Source: AGHT+IGrhPtDBI7mm0L+qUgEho7acpARnPVOUZXDS+ljGfZIWNdSyQWzTJOpuFfLDKfpqQYhrBax X-Received: by 2002:a05:620a:1033:b0:786:f860:a869 with SMTP id a19-20020a05620a103300b00786f860a869mr203893qkk.1.1707757585950; Mon, 12 Feb 2024 09:06:25 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707757585; cv=pass; d=google.com; s=arc-20160816; b=eU4mQukyAJ/vJLBI9U8gu/mV291kRYnsArTrnQtNWbhu5SnqxdzttzO/dUwlvTlayX 3h0ylSPLPC07kdehqrN5Y4b+paJWot6SJBklflSH8YtjLuGHt05JBRtz+RTvfDW2/4Ik 5bspx+cI3GBPQvlI7ZWw5Q3HtMC0FGVaGQ5Mn26qM2q65F2SP8q31wxi1eKOkgHArS9Y 2NbMOWzq+iZDCY4sI/SJNXRABOPSYUU0otCKIgs3A3NSPH6Db3+ldafPmv+hf13kYZbB DCPjRq99PTrHKrMzmHmus5f1Ef91A13JjYAS5mk+X1SVoq3u0N4Gkh4VPJbpDHl65cGf hV8w== 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=7F720owZr/j1frgLuq+Yw0FW+QdoMVBSo725nd/yJZo=; b=t8GFaS2jIBGcpvmVLfSZFDjsW6eZS5JCnGvcgTrOPP4UAKA20lXUN3NZZEqYE2XatZ 8knawK5SN74fI9GxGF5VxwpGu3su+6SoCtaQkAnUdRiljffWQlL05nfG2/C0mNI/2eHH 9uwYehFE6TWh9MuyPkI0DEbmOcqwDzW0YNFJf+9CSm/gRGHQUYX8YHxVtpl2PTxfkMhu YJAb44bMSjaSTMoqZADzmdM0BspAvac6EivcCInO4hBEDneevLLPuoIarBpoRMb1bdjm aplVO23cAKLirQWPLOft1VBOAhk+Ely6gbloYvlIMYdvGqX6bsMHH+iCSTGK7V4zBnAr vegQ==; 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-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-62041-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com X-Forwarded-Encrypted: i=2; AJvYcCU9x2s0uu9HSvkqPSS5G/U4uqnYm+0oHGLYmmUicuqgyjrLpIfe08m6/AGLonbq0U96fSo5H0CVu43bNJEIGdwE0l4+5kjX2O0qXaJqwg== Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id fh3-20020a056130308300b007d61728ba7asi1061002uab.47.2024.02.12.09.06.25 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 12 Feb 2024 09:06:25 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-62041-linux.lists.archive=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-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-62041-linux.lists.archive=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 9E99A1C219B1 for ; Mon, 12 Feb 2024 17:06:25 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id C53E7405CB; Mon, 12 Feb 2024 17:04:50 +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 Content-Transfer-Encoding: 8bit Move embedded struct linedisp member to make container_of() no-op. Signed-off-by: Andy Shevchenko --- 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); }; -- 2.43.0.rc1.1.gbec44491f096