Received: by 2002:a05:6500:2018:b0:1fb:9675:f89d with SMTP id t24csp311592lqh; Fri, 31 May 2024 01:58:23 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUJV/Jw7/LJpFkm0a6FXRY+p3couaHtaabBrB5erHRFEfIW582OOqWTgdKCjHWgjYb23w/cUjHVEHuanV+Kta/Fi2T35yv9ubCbdD2fFg== X-Google-Smtp-Source: AGHT+IFuSXCdxLUYcMa04HpJ3aZcVfQmd43UCZdHOZA1BxV16+os7MwJshAfkXxdq8oyNVlAPp6M X-Received: by 2002:a50:ab17:0:b0:57a:14fe:461a with SMTP id 4fb4d7f45d1cf-57a365c9ff3mr1277460a12.39.1717145903708; Fri, 31 May 2024 01:58:23 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717145903; cv=pass; d=google.com; s=arc-20160816; b=sd85NLR62Ou79jO4aPTvwQnzJvkgU+1iCKCxC2LluxctyLU8jjCFlUs77EESTndUyD gT61Ap7tNb8QugVOYMKoO7lb2ykcjOtUYD3EpihOYBDGb6GwqK0kNWP7xz026QGSPmgE dQHjMCBeBFcOUC2BbexKiqsBSzdLKGI5UaXQEVAalWfPmwvIHTc84+MoqdHXTIwfP63+ ZFy+/bfw+FoCM743jo6p2Ao+531avvYAmNz8hWhIDfxiDQiPl9ZtkfSzthTB8Eel2ZtO YmhYSLJK/ZUvf6ygVaN9RJPJSDj8dtgLN/a2+RXqiNlWIoalxqLgZn4SK83bqIRKBW6+ oJ8A== 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:message-id:date:subject:cc:to :from:dkim-signature; bh=QljEamaz3mSONFWT5Op6k1tNyxsfUAuFoqWpRnE3RAM=; fh=yT/1B276qWXj1dSLqqEKiMaTwSYIInkftguVP37bbiQ=; b=qiWMUWTiuaJ+IF+4PNxrM8bQd5d4+RlvMMlEA0XowhYG83Ji95ahcszi3fmQXyugb3 1pzpAZUWoNez7IQNOcKs3jOoHAcExU47vARzu3KTBhwInYtl9hgzZRIZV0CRbiJrPPK1 b0XAXLIRXv0x9q+viiEnvXNNfvTi1RPYXGNdesghbhqMRjZFL/MMoUv3XQqwUalMgDMx HpvAvs7Lqx0kRgYl/6H2JCTDCu6nbxoEgu77DxLTzYcRqaM4qZ5JxnVOYLzT5UMJ18He Vr3IT2n/XDIjiRCfVY3+RRAJpYJ0wt3iIOp7OJt8Pm/i+SUyzdjmuVEzFcZyjyGFvmLO 5OBw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@denx.de header.s=phobos-20191101 header.b=futErEBw; arc=pass (i=1 spf=pass spfdomain=denx.de dkim=pass dkdomain=denx.de dmarc=pass fromdomain=denx.de); spf=pass (google.com: domain of linux-crypto+bounces-4592-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-crypto+bounces-4592-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=denx.de Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id 4fb4d7f45d1cf-57a31ca5e92si746760a12.537.2024.05.31.01.58.23 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 31 May 2024 01:58:23 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-crypto+bounces-4592-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@denx.de header.s=phobos-20191101 header.b=futErEBw; arc=pass (i=1 spf=pass spfdomain=denx.de dkim=pass dkdomain=denx.de dmarc=pass fromdomain=denx.de); spf=pass (google.com: domain of linux-crypto+bounces-4592-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-crypto+bounces-4592-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=denx.de 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 am.mirrors.kernel.org (Postfix) with ESMTPS id BCB4E1F22DED for ; Fri, 31 May 2024 08:58:13 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id A1866175AE; Fri, 31 May 2024 08:58:09 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=denx.de header.i=@denx.de header.b="futErEBw" X-Original-To: linux-crypto@vger.kernel.org Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id D59A517550 for ; Fri, 31 May 2024 08:58:07 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=85.214.62.61 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717145889; cv=none; b=onE7vUr4t7C1lRE93MV34MR13UaBpFwOlQWemmoed1VdeBFIY8CoBbCDlJKAVBPbmplrEDsgszB60FvDWEwWa4Y64y/vXciH/qMLRNPAjf81NGqndQ8y+njSHtgGlfHywkORXJODgGr5vZcFpPX5JNbxtS8mjpve7R1GHeUSe/4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717145889; c=relaxed/simple; bh=B78LkLOgockLnbSmkw3Af+UmkNpFA0XXABsAcBQJIWw=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version:Content-Type; b=EkrvLjO5af16ZMw3Cq25KptLst7PgFz5jx/zUlu9gAzWEPaGCzXIh9ewZhiTRmqpxMMch8N7f3UJIe6NfnikIyHhEssWVjBb0ruc5YEmV9CTCHriGbPh9qEuHJlvmsGb84n1+zqL1M6j9Ak0HUL1u4uNs+6c5ZIu7WTqJp4IZ2I= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=denx.de; spf=pass smtp.mailfrom=denx.de; dkim=pass (2048-bit key) header.d=denx.de header.i=@denx.de header.b=futErEBw; arc=none smtp.client-ip=85.214.62.61 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=denx.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=denx.de Received: from tr.lan (ip-86-49-120-218.bb.vodafone.cz [86.49.120.218]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (No client certificate requested) (Authenticated sender: marex@denx.de) by phobos.denx.de (Postfix) with ESMTPSA id 756E8882FA; Fri, 31 May 2024 10:58:05 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=denx.de; s=phobos-20191101; t=1717145885; bh=QljEamaz3mSONFWT5Op6k1tNyxsfUAuFoqWpRnE3RAM=; h=From:To:Cc:Subject:Date:From; b=futErEBwCEFrIu33jjPiuMmEdy45pTX8qBNZNjZ9DqVXqIptDnmZqs+MHdBMH+UJm RGcLl22AeH8xM9mHTEHubK0YaEZkGjjgydJ2h4MHT9gDuWtvlEZxD4CUZsNY2sDm3/ YAucjgDgz6M9iO+4Ea86VZvxmaXR0ecdiipyXyM8fqVIJIYWTQFtRfOApWzsOor9hi 8NcQiSjZsFA/nX+N4Ay+9Ju7u/zsEZ4mQz3fCUBrLoDDkJXy+0IjtKD9BtRUYYLkXR BCTW1+oXdrU3el9psMiAHoYInsmRSqx6pYWPdC/FDxuP3jU4CS2spp1chirJGCTxtK q38BTBvDexP3Q== From: Marek Vasut To: linux-crypto@vger.kernel.org Cc: Marek Vasut , =?UTF-8?q?Uwe=20Kleine-K=C3=B6nig?= , Alexandre Torgue , Gatien Chevallier , Herbert Xu , Maxime Coquelin , Olivia Mackall , Rob Herring , Yang Yingliang , kernel@dh-electronics.com, linux-arm-kernel@lists.infradead.org, linux-stm32@st-md-mailman.stormreply.com Subject: [PATCH] hwrng: stm32 - use sizeof(*priv) instead of sizeof(struct stm32_rng_private) Date: Fri, 31 May 2024 10:57:34 +0200 Message-ID: <20240531085749.42863-1-marex@denx.de> X-Mailer: git-send-email 2.43.0 Precedence: bulk X-Mailing-List: linux-crypto@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Virus-Scanned: clamav-milter 0.103.8 at phobos.denx.de X-Virus-Status: Clean Use sizeof(*priv) instead of sizeof(struct stm32_rng_private), the former makes renaming of struct stm32_rng_private easier if necessary, as it removes one site where such rename has to happen. No functional change. Signed-off-by: Marek Vasut --- Cc: "Uwe Kleine-König" Cc: Alexandre Torgue Cc: Gatien Chevallier Cc: Herbert Xu Cc: Marek Vasut Cc: Maxime Coquelin Cc: Olivia Mackall Cc: Rob Herring Cc: Yang Yingliang Cc: kernel@dh-electronics.com Cc: linux-arm-kernel@lists.infradead.org Cc: linux-crypto@vger.kernel.org Cc: linux-stm32@st-md-mailman.stormreply.com --- drivers/char/hw_random/stm32-rng.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/char/hw_random/stm32-rng.c b/drivers/char/hw_random/stm32-rng.c index d08c870eb8d1f..9d041a67c295a 100644 --- a/drivers/char/hw_random/stm32-rng.c +++ b/drivers/char/hw_random/stm32-rng.c @@ -517,7 +517,7 @@ static int stm32_rng_probe(struct platform_device *ofdev) struct stm32_rng_private *priv; struct resource *res; - priv = devm_kzalloc(dev, sizeof(struct stm32_rng_private), GFP_KERNEL); + priv = devm_kzalloc(dev, sizeof(*priv), GFP_KERNEL); if (!priv) return -ENOMEM; -- 2.43.0