Received: by 2002:a05:6a10:8395:0:0:0:0 with SMTP id n21csp621791pxh; Tue, 9 Nov 2021 16:19:50 -0800 (PST) X-Google-Smtp-Source: ABdhPJz1cF0nFma385oUiZlCFdHu5HDOsiKNJRQnInbTZ1KgU5ZZvV1+DppcfXEqg+DdvPGdtytu X-Received: by 2002:a05:6638:22d6:: with SMTP id j22mr9098125jat.97.1636503590563; Tue, 09 Nov 2021 16:19:50 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1636503590; cv=none; d=google.com; s=arc-20160816; b=SRHgTl/+JOfMJGEPw8Dl9IDhxTMgDFiX03wi90p2xxvRxR1gTkzyhv4PUIT49pZlit /4zdJ8vuSCHasXBUSBaQpg52q9ZiST+TyqHchcN+CGYQbd9pIbuAVWUpT21Nt7oUcecb hLq2iKqv1mX7fydloKUdmCUiKX0nddZZit/+QH39kIULjctZHr9HImjPKIZGCCMo+aYN KK2Xr526YCsVURmATJcm8xUCjnwXbgZJ0lC0G874jTebHA8pr4FGD074kixjJNn3TJvj j1rq+r95+8M7jp4ZsC95d5OH1bDfrd4GgqU+f7biRo4Pmo2hu2EN2c5HIT/TVqE2KFjB 4z9A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=Knm+1fWLBsxLEW41OBuptUN5iX3Ypk6GGtGuApg2Lwg=; b=OP5T+VmjTPmwIlExuSpvrQD/zlrLKL7itjorTsOJ30Celw/q1o3cBJB5E7o7vKSKxG +jVph9rlIQF3u7i8IbfXzxc1RR45vh3z026Ib31GwYhqGZI4xmuCaESvxmSdcmcVFpBz Rwyoc7nWP2fNdDtDEPlrRCajsFuydBug+aZOw+77+6WfoRIDfOnV8TynXgtCy9E+rqMb ceqzkIATpI35/5NYY+l4W/aTc8h6el7qc6nPEQ8xrdRrbrGr0Uon4Ly8o2oxTEw+6Z8V VJI3Yk81pOIWS2fRAJvVqCnqYiqzIWbyZWFpvSbt2zmF0nv4OLzTr/cZTMe6wDNOzhjd es7w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@lunn.ch header.s=20171124 header.b=wxMjZEwF; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id y5si44833229ill.62.2021.11.09.16.19.38; Tue, 09 Nov 2021 16:19:50 -0800 (PST) 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=@lunn.ch header.s=20171124 header.b=wxMjZEwF; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S244814AbhKIVBU (ORCPT + 97 others); Tue, 9 Nov 2021 16:01:20 -0500 Received: from vps0.lunn.ch ([185.16.172.187]:53386 "EHLO vps0.lunn.ch" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240544AbhKIVBT (ORCPT ); Tue, 9 Nov 2021 16:01:19 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lunn.ch; s=20171124; h=In-Reply-To:Content-Disposition:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:From:Sender:Reply-To:Subject: Date:Message-ID:To:Cc:MIME-Version:Content-Type:Content-Transfer-Encoding: Content-ID:Content-Description:Content-Disposition:In-Reply-To:References; bh=Knm+1fWLBsxLEW41OBuptUN5iX3Ypk6GGtGuApg2Lwg=; b=wxMjZEwFBPrYee0kuYW/+Z9L6G gZCtp1/tutHLV44lg973zw8Z6C4TQd3yd9YcdcSrhCNXpC+JSZr3xQMzWAL+SedrvmxZq6IGlZ7i9 NoqtU2kPqC/SlQVi/m3QE1Bmajrt8b9jvyC+VzdHj1gFXbyKKkYFSFCsKUnqYxSEUYFA=; Received: from andrew by vps0.lunn.ch with local (Exim 4.94.2) (envelope-from ) id 1mkYCJ-00D1Tq-2t; Tue, 09 Nov 2021 21:58:27 +0100 Date: Tue, 9 Nov 2021 21:58:27 +0100 From: Andrew Lunn To: Ansuel Smith Cc: Vivien Didelot , Florian Fainelli , Vladimir Oltean , "David S. Miller" , Jakub Kicinski , Rob Herring , Jonathan Corbet , Pavel Machek , John Crispin , netdev@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-doc@vger.kernel.org, linux-leds@vger.kernel.org, Marek =?iso-8859-1?Q?Beh=FAn?= Subject: Re: [RFC PATCH v3 4/8] leds: trigger: netdev: rename and expose NETDEV trigger enum modes Message-ID: References: <20211109022608.11109-1-ansuelsmth@gmail.com> <20211109022608.11109-5-ansuelsmth@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20211109022608.11109-5-ansuelsmth@gmail.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Nov 09, 2021 at 03:26:04AM +0100, Ansuel Smith wrote: > Rename NETDEV trigger enum modes to a more simbolic name and move them symbolic. Randy is slipping :-) > in leds.h to make them accessible by any user. any user? I would be more specific than that. Other triggers dealing with netdev states? > +++ b/include/linux/leds.h > @@ -548,6 +548,13 @@ static inline void *led_get_trigger_data(struct led_classdev *led_cdev) > > #endif /* CONFIG_LEDS_TRIGGERS */ > > +/* Trigger specific enum */ You probably want netdev in the comment above. Things could get interesting if other ledtrig-*.c started using them. > +enum led_trigger_netdev_modes { > + TRIGGER_NETDEV_LINK, > + TRIGGER_NETDEV_TX, > + TRIGGER_NETDEV_RX, > +}; > + > /* Trigger specific functions */ > #ifdef CONFIG_LEDS_TRIGGER_DISK > void ledtrig_disk_activity(bool write); > -- > 2.32.0 >