From mboxrd@z Thu Jan 1 00:00:00 1970 From: Takashi Iwai Subject: Re: [RFC PATCH 1/2] ALSA: hda - add hda_dev_t typedef for DP MST audio Date: Tue, 03 Nov 2015 17:28:10 +0100 Message-ID: References: <1446538973-109373-1-git-send-email-libin.yang@linux.intel.com> <1446538973-109373-2-git-send-email-libin.yang@linux.intel.com> Mime-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mx2.suse.de (mx2.suse.de [195.135.220.15]) by alsa0.perex.cz (Postfix) with ESMTP id 358E826044E for ; Tue, 3 Nov 2015 17:28:11 +0100 (CET) In-Reply-To: <1446538973-109373-2-git-send-email-libin.yang@linux.intel.com> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: alsa-devel-bounces@alsa-project.org Sender: alsa-devel-bounces@alsa-project.org To: libin.yang@linux.intel.com Cc: Libin Yang , alsa-devel@alsa-project.org, mengdong.lin@linux.intel.com List-Id: alsa-devel@alsa-project.org On Tue, 03 Nov 2015 09:22:52 +0100, libin.yang@linux.intel.com wrote: > > From: Libin Yang > > Signed-off-by: Libin Yang > --- > include/sound/hdaudio.h | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/include/sound/hdaudio.h b/include/sound/hdaudio.h > index e2b712c..1f54964 100644 > --- a/include/sound/hdaudio.h > +++ b/include/sound/hdaudio.h > @@ -15,6 +15,7 @@ > > /* codec node id */ > typedef u16 hda_nid_t; > +typedef u8 hda_dev_t; This isn't used in any ABI, so we don't have to define the type. Just use int instead. NID was defined there because it's used in ABI and it can represent the purpose more clearly. (Also at the early time of driver writing, the size itself wasn't 100% clear; we started writing it before HD-audio spec got solid.) thanks, Takashi