Received: by 2002:a05:7412:bbc7:b0:fc:a2b0:25d7 with SMTP id kh7csp2917813rdb; Tue, 6 Feb 2024 01:26:36 -0800 (PST) X-Google-Smtp-Source: AGHT+IE7mjiOPVCUPOcuLBJQX8igi4SK/bR9xoljze5e77dmz3hyCtBy5iYmZHr69ORr818CC919 X-Received: by 2002:a05:6808:308c:b0:3bd:e392:fab9 with SMTP id bl12-20020a056808308c00b003bde392fab9mr2600769oib.38.1707211596711; Tue, 06 Feb 2024 01:26:36 -0800 (PST) X-Forwarded-Encrypted: i=1; AJvYcCVlfk0Q1iEfKyhehPk9QEssaKxfqTwS5lRUD+4pqMIJuXwEp6wXOyH1xvXajBiq6Y1pC6sMsagMFJm8IjRlBM04Uz2UTZiBqsrw6sOziQ== Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id k4-20020aa79d04000000b006e04716e436si1286486pfp.216.2024.02.06.01.26.36 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 06 Feb 2024 01:26:36 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-54585-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; arc=fail (body hash mismatch); spf=pass (google.com: domain of linux-kernel+bounces-54585-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-54585-linux.lists.archive=gmail.com@vger.kernel.org" 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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 104672849F1 for ; Tue, 6 Feb 2024 09:26:33 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id C1AD012D15B; Tue, 6 Feb 2024 09:26:22 +0000 (UTC) Received: from mail-yw1-f171.google.com (mail-yw1-f171.google.com [209.85.128.171]) (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 320AD1EEE7; Tue, 6 Feb 2024 09:26:19 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.171 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707211582; cv=none; b=NDiguV5Eq70Cibeo4M0BXFj7iJWds2ZLPxKnYz7xSQHtTRVp/trf0FIuS0v83uPeQdGMotI1EehXBaM8suT90eSXa4iDwZm+C5qIM5LKwaBaLYeaTM5plQgXgULsexK3XsF5PySlhUSU7eHzhUX05ZrMxEuFiIG/rChL3aV9H1w= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707211582; c=relaxed/simple; bh=q+ipK9Pdt16bN9JLtiBX6eY547sX3sZjEKdN1uB5Yvo=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=VfT5FreVgtFrHWpmm6HIUyr74q8A1jL0U2kg3b5dTsQZa6ho8cbKlYhSFTwg6z5MPZHQwC4zyGrDFVLVu88N43BGqHNh4AwxdL3+2xxhyoYu1xvV8pr/R3fwJOVNwJ50d6OicDbBb+jBnvUtdNMqTEeLiVNYL3csruUGLetgfao= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=linux-m68k.org; spf=pass smtp.mailfrom=gmail.com; arc=none smtp.client-ip=209.85.128.171 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=linux-m68k.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-yw1-f171.google.com with SMTP id 00721157ae682-6047cfd1f5cso3215167b3.2; Tue, 06 Feb 2024 01:26:19 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1707211577; x=1707816377; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=z2vNm5vci5F+R+oBGRNTgxDB8K1oVhEs6yL2hE7dnho=; b=uAgEH3PpUNrfU/M/WzHZIB78ozjss/hQbLyEYO19NHwyHhQ3x1MNh6vKC6wXL0tUNp DeNUClA9+nilQohf/ycu+VctiQVEfgcMVBiCIeGaZ91GQjUNVrfbn6ex5waqIK9yyrvT 3awLplnKoRKvslCDldOo6ehi4vdhw2Gpyw0AFWXewQDrDWqVeDEVHIycVWFbqygErhjT 8qQOZW5xktXA0Lu6RmMVY5jp4SOrZhX+ibGAP6nF1vwTvjG0ChyxF5vgHJ4OUi4yPe8/ 57arMEpMxKoZrZaAoWjkZqQ3ixq9rSgTEvQMVAZ6vsdw8D6a4t/HuBItOTzIoc1EHjMf 4vnw== X-Gm-Message-State: AOJu0YwXhpgjGE7ERplug93N4P6ymobhvkhosB9GSUya3jrHXo6rLnsX XBxebcVNTZBLuVl92aAG44HhRsq4TXV2xL3EM0/dteyDruy76Dsk3l4eNGt+Yvg= X-Received: by 2002:a81:e80b:0:b0:5e9:dca:1b14 with SMTP id a11-20020a81e80b000000b005e90dca1b14mr1155848ywm.7.1707211577512; Tue, 06 Feb 2024 01:26:17 -0800 (PST) X-Forwarded-Encrypted: i=0; AJvYcCWqI8UZILc36CTWWWfDsom+7/v6tMP3pn7xtVfp37v6eqGVI3zW+o0EWT8bb3pNgzgQWhC96QIHrEpg5yVsKgdCQwGKbDCpqMkYS/MHInxWD33L6bsqDHjaB+cWG5GocFvqQfxWPu4k+1G24AeU2RXQL5PZIj17EXEUXCi0FdciF4/innApR70= Received: from mail-yw1-f174.google.com (mail-yw1-f174.google.com. [209.85.128.174]) by smtp.gmail.com with ESMTPSA id dt10-20020a05690c250a00b0060409872f1asm392805ywb.100.2024.02.06.01.26.16 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 06 Feb 2024 01:26:17 -0800 (PST) Received: by mail-yw1-f174.google.com with SMTP id 00721157ae682-604713c4ee5so10966117b3.0; Tue, 06 Feb 2024 01:26:16 -0800 (PST) X-Received: by 2002:a0d:d8c6:0:b0:602:98af:b469 with SMTP id a189-20020a0dd8c6000000b0060298afb469mr1143306ywe.9.1707211576249; Tue, 06 Feb 2024 01:26:16 -0800 (PST) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <6e397bf2-1d45-434f-8619-58a737a138e3@web.de> In-Reply-To: <6e397bf2-1d45-434f-8619-58a737a138e3@web.de> From: Geert Uytterhoeven Date: Tue, 6 Feb 2024 10:26:03 +0100 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH v2] pmdomain: mediatek: Use devm_platform_ioremap_resource() in init_scp() To: Markus Elfring Cc: linux-mediatek@lists.infradead.org, linux-arm-kernel@lists.infradead.org, linux-pm@vger.kernel.org, kernel-janitors@vger.kernel.org, Angelo Gioacchino Del Regno , =?UTF-8?Q?Heiko_St=C3=BCbner?= , Jernej Skrabec , Matthias Brugger , Rob Herring , Ulf Hansson , LKML , Geert Uytterhoeven Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Tue, Feb 6, 2024 at 10:21=E2=80=AFAM Markus Elfring wrote: > From: Markus Elfring > Date: Tue, 6 Feb 2024 10:05:34 +0100 > Subject: [PATCH v2] pmdomain: mediatek: Use devm_platform_ioremap_resourc= e() in init_scp() > > A wrapper function is available since the commit 7945f929f1a77a1c8887a97c= a07f87626858ff42 > ("drivers: provide devm_platform_ioremap_resource()"). > > * Thus reuse existing functionality instead of keeping duplicate source c= ode. > > * Delete a local variable which became unnecessary with this refactoring. > > > This issue was transformed by using the Coccinelle software. > > Signed-off-by: Markus Elfring > --- > > v2: > The transformation pattern was adjusted based on advices by known contrib= utors. > > Examples: > * Doug Anderson > * Geert Uytterhoeven > * Robin Murphy Reviewed-by: Geert Uytterhoeven Gr{oetje,eeting}s, Geert --=20 Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k= org In personal conversations with technical people, I call myself a hacker. Bu= t when I'm talking to journalists I just say "programmer" or something like t= hat. -- Linus Torvalds