From patchwork Fri Sep 2 17:45:22 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: William Breathitt Gray X-Patchwork-Id: 602528 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 687DEECAAA1 for ; Fri, 2 Sep 2022 21:40:31 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231219AbiIBVk3 (ORCPT ); Fri, 2 Sep 2022 17:40:29 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46054 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229500AbiIBVk2 (ORCPT ); Fri, 2 Sep 2022 17:40:28 -0400 Received: from mail-qk1-x72f.google.com (mail-qk1-x72f.google.com [IPv6:2607:f8b0:4864:20::72f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4000432067 for ; Fri, 2 Sep 2022 14:40:19 -0700 (PDT) Received: by mail-qk1-x72f.google.com with SMTP id a15so2758108qko.4 for ; Fri, 02 Sep 2022 14:40:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date; bh=+8Ft1mVGdwq0RIV8cOnix7sgy5002RZB61A7qgepDD0=; b=mn6P/pezyV0nyqwkgmNcfOjKB4yTZPoV/I8xuQYyZQxw5Q+xbj8Wlzc25aAbV7FGbK Gx2gniQJ4aSGPujlhqbJrYo3FKsaUfayKjS4DNbASUEB3jX5lP5SydoI0rRVoPi3AoM6 aaq1Hc3PgzsRKh4o4JrARzKeFB4JCcQHlT2EZ91ZfzHzrEt1JngdwVtnYI2U1avwpLYA YNj506+cGaphNqnqkgj0PLvVn9qVLuUu00eer0idNvRFRjusoOobTXc2QY7Gj+j/cBIt uzq6fedSpSRGljs5stELZkcDl9XBn1bWAxoTvUmUzeh32fQwS0NC+6qtuUROtZqCplWs wSew== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date; bh=+8Ft1mVGdwq0RIV8cOnix7sgy5002RZB61A7qgepDD0=; b=j4Ozn8ec7V/axHV6cQB+qhfFx0YPtJ8thUbyaDi6sUOUTRSocdibJLNnpv1FdQQwgB /TwWQuD+2VfR68EX9qw/eNSiNjWToeHlp3cikLT0b3noyIYjdW2c/VptO7Vt8dL5VNY7 KIDaBPMkn3Cbi2AQHT293G5cDmDtfQVpuaFHAR89CEFIK4iFzgeGLIcETue9WiVKsW6S UGqzXii7VJWiVTkqhzS8gS8irACE015rngxLGceef5XxR4gBoOq16l5N/gaGwQZu8krb qc2tzmkXCBnvwAUCXuD+bGw8xUpghk6n2+A783Hnby80qLTjLf/ckgl6U17BA72BoX+V WxHw== X-Gm-Message-State: ACgBeo2TMEpanKprM4dcbYNtA0vyXRwQwE/oMxQvoSey0V8wuDL0roup p9BzUvThFnArgNiFow3rFz4oOa9krYiQ3g== X-Google-Smtp-Source: AA6agR4uJASxNPWEK/cs1v9m6Yj/4v+DmsqZAcam1NqmGYpkOusEcWnxWsFIW0eCeWTXt2L/3brnQg== X-Received: by 2002:a05:620a:4114:b0:6bb:33c2:45f9 with SMTP id j20-20020a05620a411400b006bb33c245f9mr24616586qko.374.1662154817936; Fri, 02 Sep 2022 14:40:17 -0700 (PDT) Received: from fedora.attlocal.net (69-109-179-158.lightspeed.dybhfl.sbcglobal.net. [69.109.179.158]) by smtp.gmail.com with ESMTPSA id 15-20020ac84e8f000000b0031f0b43629dsm1819533qtp.23.2022.09.02.14.40.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 02 Sep 2022 14:40:17 -0700 (PDT) From: William Breathitt Gray To: brgl@bgdev.pl, linus.walleij@linaro.org Cc: linux-gpio@vger.kernel.org, linux-kernel@vger.kernel.org, William Breathitt Gray Subject: [PATCH 0/4] Make irq_chip immutable for ISA drivers Date: Fri, 2 Sep 2022 13:45:22 -0400 Message-Id: X-Mailer: git-send-email 2.37.2 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-gpio@vger.kernel.org Kernel warns about mutable irq_chips in ISA drivers: "not an immutable chip, please consider fixing!" Make the struct irq_chip const, flag it as IRQCHIP_IMMUTABLE, add the new helper functions, and call the appropriate gpiolib functions. William Breathitt Gray (4): gpio: 104-dio-48e: Make irq_chip immutable gpio: 104-idi-48: Make irq_chip immutable gpio: 104-idio-16: Make irq_chip immutable gpio: ws16c48: Make irq_chip immutable drivers/gpio/gpio-104-dio-48e.c | 10 +++++++--- drivers/gpio/gpio-104-idi-48.c | 10 +++++++--- drivers/gpio/gpio-104-idio-16.c | 18 +++++++++++------- drivers/gpio/gpio-ws16c48.c | 10 +++++++--- 4 files changed, 32 insertions(+), 16 deletions(-) base-commit: 6ae8e1d0d5e5de922315830aea975c63e8c70b2f