Received: by 2002:a05:6a10:eb17:0:0:0:0 with SMTP id hx23csp921868pxb; Thu, 9 Sep 2021 15:27:22 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwWCpeDsfA5NWco+/uM24ap0FZElUuw3tFixg22yf0sM3WziOexkKdGrBlUbzmdTZtQpZVS X-Received: by 2002:a6b:d209:: with SMTP id q9mr4642885iob.206.1631226442203; Thu, 09 Sep 2021 15:27:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1631226442; cv=none; d=google.com; s=arc-20160816; b=XDi3aKMxaarktJulUN/AJxxkXdFIFy/anXDFI/gFtp+l36cPL4upJ7K0m7ESvYB6cE 8ntbmd3owGU/itpzKrlCrp0/I/x4eg5gF3M5nLBuONAWcdIDU5JRkgFqKZI4QXapjvvW GRzUnkLOmnN/4vNlc8yy+6pYXcaXGbzFTKJP3Bo5GXg3uND4A/nNf3QEmIbV/vYepbFD 5yLQKqRlkKjsmvQVT2eAF/zhHMb4sAmlc9qngxuske906foyveUQ6frpemLV/YpMbanw X8H29H6Oj7r5kjcZcMFTTOO6TlUssaexSiXonBqKuqaiWGs2JrR1jt6/mkUUrGCwNQPi Lqag== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=GdOcaIt+lEs3P/5jE6RLnbfIIvqFBGA/JhoMskjrSdU=; b=U1OCBYzVrxbOgHzdVG2ln55PIgAJc7mVe0J3Ny147hxOxdD7zL99CtNqzl/K4a9s9W Siev8Y1lMmSukBQedbKBV2vfe10As5OZxTEdDSRd1PNXHZM5bzG0SB9NW/mn6WvtP/4P erog83HF9x9I70VENi5o5nn8SaAu9OTyRh08H7YYqGuTtadX77j7T1HsUFhtsSdAEtuk svpRhOxa3aSDWO/Z2DYNs51BLTrMskX4kDTrKx9jkg+gENT+iIAm06n/4QMIOiPeEH+I XaKRRSPmCJuOsturI5s/EYUIcsBnPbKAIsVN5Rl8Ga1RabTkQCkvIBRQRMLVByYFXmsF XNiQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=hCMclT5M; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id u16si2922917ilb.175.2021.09.09.15.27.08; Thu, 09 Sep 2021 15:27:22 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=hCMclT5M; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1346492AbhIIW1C (ORCPT + 99 others); Thu, 9 Sep 2021 18:27:02 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40792 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1345294AbhIIW0h (ORCPT ); Thu, 9 Sep 2021 18:26:37 -0400 Received: from mail-oo1-xc2d.google.com (mail-oo1-xc2d.google.com [IPv6:2607:f8b0:4864:20::c2d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 610D8C061574; Thu, 9 Sep 2021 15:25:27 -0700 (PDT) Received: by mail-oo1-xc2d.google.com with SMTP id m14-20020a4ad50e000000b002912a944a47so1058145oos.12; Thu, 09 Sep 2021 15:25:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=GdOcaIt+lEs3P/5jE6RLnbfIIvqFBGA/JhoMskjrSdU=; b=hCMclT5Mqq4sU+Yr0lvxe+xbbwa0bmJ8/8QFGcmhfAsJs7mGj3WMBkP4REPpn1Y49Q XTS1RBL190LzsPM5VgmKOWOqoTyBGCNLHoCjkyiLQtM3Mlnw4yaR9oCBAenIDve9qm5B s9pS4SqZFXGhiaddxJ7f8TQ7quoPYDHtUnQwESp1ipRLCMRKeu+lTJWDtwPCFBM4vXjd YbL2ESZydO0TxFC6KpqkxBjgqg9hSgILIAIRGrv2WWlBpPAzUQ8dM/RQOZ3CF1GocIyP V3qtiRp7JCKzQrbu6kgjdswc1Aa6+zMZs8rgXgVJnsohNoUOp8hfeG61ixsmBMHhBhaf Vvmw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=GdOcaIt+lEs3P/5jE6RLnbfIIvqFBGA/JhoMskjrSdU=; b=nNqlwJKK7PGHdUIioZ3I/a+Fx4ON9GoJN9B/hwlBZfULeLR5mDB7OaUQmiUR3hPFrW Of9Z3jQGgOC485KnuI8SV2fzDSNgzYhOr8aSgP+KPP3oxlgPWtZzJN0LyKt4HSoAHCm6 +6nmGwnA0/8aEH60gUX5loPbUfu3WqhtITSkFUl5VIt98Pv/UIldo/oG/2wASn7h+Twj eEw6/3ho9W6qL1K6df2NA9+Vx43tC68+O25duMzOq7m7SOCo/e8uHalsyLQbw7xMblIa 2jUqnwP7LD4yuR9ue2t258G78WaLKU2I0KLlGGIYXLb9s9gJCJjT3Ob/RLeWErbNIt9T THNw== X-Gm-Message-State: AOAM533IY7b8WozlQE4fYdB2O+JNQI0XBPvO4KTjEAu/rCYS2ztwZDJJ zc7tAiygbL140DI0c83bG8Y= X-Received: by 2002:a4a:a78a:: with SMTP id l10mr1809670oom.30.1631226326744; Thu, 09 Sep 2021 15:25:26 -0700 (PDT) Received: from ian.penurio.us ([47.184.51.90]) by smtp.gmail.com with ESMTPSA id 4sm747293oil.38.2021.09.09.15.25.26 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 09 Sep 2021 15:25:26 -0700 (PDT) From: Ian Pilcher To: axboe@kernel.dk, pavel@ucw.cz Cc: linux-leds@vger.kernel.org, linux-block@vger.kernel.org, linux-kernel@vger.kernel.org, gregkh@linuxfoundation.org, kabel@kernel.org Subject: [PATCH v2 08/15] leds: trigger: blkdev: Add stub LED trigger structure Date: Thu, 9 Sep 2021 17:25:06 -0500 Message-Id: <20210909222513.2184795-9-arequipeno@gmail.com> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20210909222513.2184795-1-arequipeno@gmail.com> References: <20210909222513.2184795-1-arequipeno@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Needed to avoid unused function warnings/errors from subsequent patches Make ledtrig_blkdev_trigger non-static for now to avoid unused variable warning/error Signed-off-by: Ian Pilcher --- drivers/leds/trigger/ledtrig-blkdev.c | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/drivers/leds/trigger/ledtrig-blkdev.c b/drivers/leds/trigger/ledtrig-blkdev.c index 38a2cd2df85c..53b62e320491 100644 --- a/drivers/leds/trigger/ledtrig-blkdev.c +++ b/drivers/leds/trigger/ledtrig-blkdev.c @@ -59,3 +59,28 @@ struct ledtrig_blkdev_led { struct hlist_node leds_node; enum ledtrig_blkdev_mode mode; }; + + +/* + * + * Initialization - register the trigger + * + */ + +static struct attribute *ledtrig_blkdev_attrs[] = { + NULL +}; + +static const struct attribute_group ledtrig_blkdev_attr_group = { + .attrs = ledtrig_blkdev_attrs, +}; + +static const struct attribute_group *ledtrig_blkdev_attr_groups[] = { + &ledtrig_blkdev_attr_group, + NULL +}; + +struct led_trigger ledtrig_blkdev_trigger = { + .name = "blkdev", + .groups = ledtrig_blkdev_attr_groups, +}; -- 2.31.1