Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id B1BEBC636CC for ; Wed, 15 Feb 2023 12:36:48 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233561AbjBOMgr (ORCPT ); Wed, 15 Feb 2023 07:36:47 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54472 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233036AbjBOMgq (ORCPT ); Wed, 15 Feb 2023 07:36:46 -0500 Received: from mail-yw1-x1133.google.com (mail-yw1-x1133.google.com [IPv6:2607:f8b0:4864:20::1133]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8FDD03802E for ; Wed, 15 Feb 2023 04:36:45 -0800 (PST) Received: by mail-yw1-x1133.google.com with SMTP id 00721157ae682-530b9a0a789so37376837b3.13 for ; Wed, 15 Feb 2023 04:36:45 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=peZj4Dk2pewXfcQXtkuPVVkhigNfkMkCTdv1hPoK17Y=; b=Hi5pgs95llh+e5WF9CMkxjOw6RVm/KtBj41xOF4pZCqWPkB0RQQNcdR9GK3MJqQ2Qu syQNFFkzsHTuLwi/hFT+M8i66y8lI96mro/ajroI0KY9Q+koWHhsUyvT+atNZlRCiU6g rNElhuBU/r2ZplBitdzGZtwnDo/Xq87PEM3aQXVqvRge+UiaAvPEo941jm6WguYGbkKM 0Rn/rangyTVxkpnwKyscZCYsaHQIMxjHJrrxONNd6/oLfa+qUWopGuwNGaGmJcThqi85 WIdzWrg7BoInBHgx+HojPtfQ9vLz6KXtnWCTktGAWcN07IYpX6SIDixHha+zY/obPvPI wPdw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=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=peZj4Dk2pewXfcQXtkuPVVkhigNfkMkCTdv1hPoK17Y=; b=c+y8d+X7xQGZUKjm26xh7FZ5ZSmZZm7ANsZj5M9irte42xdnC2N5BltzFUah8A1P1Y Xb4pyZe/p2w5wC5597VTln4FY9tVp7ypadQKSXM7RckbpLWODltB+9WpZXZShWeFfK/G yNpjQCj7H82BvNHJMrw0WE6YPIEeCBAtgymsmIv5YpYer+0a4Qegx8EURpUL6LxbZHTq 1Ipo0Bf0aJSjrRSmpRBSScPnHmXHcZABY3rDs9dKo5croM6rfR+EpVUeMQWXcsJqyTj8 y6cmlbqC6PdClcUq3SJmxwpE6qGyPJ5Kb7TkgEXTEv6wC5ON82jBHs4ECMbShJT8rjlB PF7Q== X-Gm-Message-State: AO0yUKV/ltMULXSlDw2h6SCxS8BypjSW0CwrkptVMk6TqefMUfnhlTsM EgVflK6Z172WjmnuG5npIVJyKhvhPshhSWyOoRW83pXz3Sg9VA== X-Google-Smtp-Source: AK7set+q7msr7DRhg1NWbsLLGrj0a/RemAwt6fWpgKw2yjIRNuUVqVgtYGWMmcjHOU9YJgjoCzyXn+EniltG86FbHRQ= X-Received: by 2002:a5b:604:0:b0:803:19fa:2c20 with SMTP id d4-20020a5b0604000000b0080319fa2c20mr163418ybq.207.1676464604763; Wed, 15 Feb 2023 04:36:44 -0800 (PST) MIME-Version: 1.0 References: <20230215095249.246911-1-alexander.stein@ew.tq-group.com> In-Reply-To: <20230215095249.246911-1-alexander.stein@ew.tq-group.com> From: Linus Walleij Date: Wed, 15 Feb 2023 13:36:33 +0100 Message-ID: Subject: Re: [PATCH v3 1/1] gpio: vf610: make irq_chip immutable To: Alexander Stein Cc: Bartosz Golaszewski , linux-gpio@vger.kernel.org, linux-kernel@vger.kernel.org, andy.shevchenko@gmail.com Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Feb 15, 2023 at 10:52 AM Alexander Stein wrote: > Since recently, the kernel is nagging about mutable irq_chips: > > "not an immutable chip, please consider fixing it!" > > Drop the unneeded copy, flag it as IRQCHIP_IMMUTABLE, add the new > helper functions and call the appropriate gpiolib functions. > > Signed-off-by: Alexander Stein > Reviewed-by: Andy Shevchenko > --- > Changes in v3: > * Use calculated gpio_num instead of accessing struct member Reviewed-by: Linus Walleij Yours, Linus Walleij