From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751919AbaK3T0R (ORCPT ); Sun, 30 Nov 2014 14:26:17 -0500 Received: from smtprelay0043.hostedemail.com ([216.40.44.43]:41634 "EHLO smtprelay.hostedemail.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751359AbaK3T0Q (ORCPT ); Sun, 30 Nov 2014 14:26:16 -0500 X-Session-Marker: 6A6F6540706572636865732E636F6D X-Spam-Summary: 2,0,0,,d41d8cd98f00b204,joe@perches.com,:::::,RULES_HIT:41:355:379:541:560:599:968:988:989:1260:1277:1311:1313:1314:1345:1359:1373:1437:1515:1516:1518:1534:1538:1593:1594:1711:1730:1747:1777:1792:2393:2553:2559:2562:2828:3138:3139:3140:3141:3142:3352:3622:3865:3867:3871:3872:3873:4321:5007:6261:8531:10004:10400:10848:10967:11026:11232:11658:11914:12517:12519:12740:13069:13161:13229:13311:13357:21060:21080,0,RBL:none,CacheIP:none,Bayesian:0.5,0.5,0.5,Netcheck:none,DomainCache:0,MSF:not bulk,SPF:fn,MSBL:0,DNSBL:none,Custom_rules:0:0:0 X-HE-Tag: bead67_5391461330545 X-Filterd-Recvd-Size: 1523 Message-ID: <1417375572.818.10.camel@perches.com> Subject: Re: [PATCH] sound: use enum names instead of magic numbers From: Joe Perches To: Takashi Iwai Cc: alsa-devel@alsa-project.org, linux-kernel@vger.kernel.org Date: Sun, 30 Nov 2014 11:26:12 -0800 In-Reply-To: References: <1417201196-12392-1-git-send-email-KyleChamberlin@project20million.org> <1417294692.818.3.camel@perches.com> <1417337732.818.8.camel@perches.com> Content-Type: text/plain; charset="ISO-8859-1" X-Mailer: Evolution 3.12.7-0ubuntu1 Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, 2014-11-30 at 10:04 +0100, Takashi Iwai wrote: > At Sun, 30 Nov 2014 00:55:32 -0800, Joe Perches wrote: > > On Sun, 2014-11-30 at 09:41 +0100, Takashi Iwai wrote: > > > At Sat, 29 Nov 2014 12:58:12 -0800, Joe Perches wrote: > > > > There's an enum defined for these magic numbers, > > > > might as well use it. > > > > > > > > Miscellanea: > > > > o Use ##__VA_ARGS__ [] > > Write it as you chose. It is pretty trivial. > > ... trivial for anyone ;) The other option is simply to remove the enum as the values are unused.