From patchwork Fri Mar 4 00:08:32 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Shuah Khan X-Patchwork-Id: 8497261 Return-Path: X-Original-To: patchwork-linux-media@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 8D5509F38C for ; Fri, 4 Mar 2016 00:08:59 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id BACEF2038E for ; Fri, 4 Mar 2016 00:08:58 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id D004420384 for ; Fri, 4 Mar 2016 00:08:57 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756953AbcCDAIj (ORCPT ); Thu, 3 Mar 2016 19:08:39 -0500 Received: from mailout.easymail.ca ([64.68.201.169]:40658 "EHLO mailout.easymail.ca" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755719AbcCDAIi (ORCPT ); Thu, 3 Mar 2016 19:08:38 -0500 Received: from localhost (localhost [127.0.0.1]) by mailout.easymail.ca (Postfix) with ESMTP id E987FE7A5; Thu, 3 Mar 2016 19:08:35 -0500 (EST) X-Virus-Scanned: Debian amavisd-new at mailout.easymail.ca X-Spam-Score: -3.69 X-Spam-Level: X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 Received: from mailout.easymail.ca ([127.0.0.1]) by localhost (easymail-mailout.easydns.vpn [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 2IvN1yJTHH50; Thu, 3 Mar 2016 19:08:35 -0500 (EST) Received: from mail.gonehiking.org (c-73-181-52-62.hsd1.co.comcast.net [73.181.52.62]) by mailout.easymail.ca (Postfix) with ESMTPA id D50DAE797; Thu, 3 Mar 2016 19:08:34 -0500 (EST) Received: from lorien.internal (lorien-wl.internal [192.168.1.40]) by mail.gonehiking.org (Postfix) with ESMTP id 340999F232; Thu, 3 Mar 2016 17:08:34 -0700 (MST) From: Shuah Khan To: mchehab@osg.samsung.com, hans.verkuil@cisco.com Cc: Shuah Khan , linux-media@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] media: add prefixes to interface types Date: Thu, 3 Mar 2016 17:08:32 -0700 Message-Id: <1457050112-6831-1-git-send-email-shuahkh@osg.samsung.com> X-Mailer: git-send-email 2.5.0 Sender: linux-media-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Add missing prefixes for DVB, V4L, and ALSA interface types. Signed-off-by: Shuah Khan --- drivers/media/media-entity.c | 32 ++++++++++++++++---------------- 1 file changed, 16 insertions(+), 16 deletions(-) diff --git a/drivers/media/media-entity.c b/drivers/media/media-entity.c index bcd7464..561c939 100644 --- a/drivers/media/media-entity.c +++ b/drivers/media/media-entity.c @@ -46,41 +46,41 @@ static inline const char *intf_type(struct media_interface *intf) { switch (intf->type) { case MEDIA_INTF_T_DVB_FE: - return "frontend"; + return "dvb-frontend"; case MEDIA_INTF_T_DVB_DEMUX: - return "demux"; + return "dvb-demux"; case MEDIA_INTF_T_DVB_DVR: - return "DVR"; + return "dvb-DVR"; case MEDIA_INTF_T_DVB_CA: - return "CA"; + return "dvb-conditional-access"; case MEDIA_INTF_T_DVB_NET: - return "dvbnet"; + return "dvb-net"; case MEDIA_INTF_T_V4L_VIDEO: - return "video"; + return "v4l-video"; case MEDIA_INTF_T_V4L_VBI: - return "vbi"; + return "v4l-vbi"; case MEDIA_INTF_T_V4L_RADIO: - return "radio"; + return "v4l-radio"; case MEDIA_INTF_T_V4L_SUBDEV: return "v4l2-subdev"; case MEDIA_INTF_T_V4L_SWRADIO: - return "swradio"; + return "v4l-swradio"; case MEDIA_INTF_T_ALSA_PCM_CAPTURE: - return "pcm-capture"; + return "alsa-pcm-capture"; case MEDIA_INTF_T_ALSA_PCM_PLAYBACK: - return "pcm-playback"; + return "alsa-pcm-playback"; case MEDIA_INTF_T_ALSA_CONTROL: return "alsa-control"; case MEDIA_INTF_T_ALSA_COMPRESS: - return "compress"; + return "alsa-compress"; case MEDIA_INTF_T_ALSA_RAWMIDI: - return "rawmidi"; + return "alsa-rawmidi"; case MEDIA_INTF_T_ALSA_HWDEP: - return "hwdep"; + return "alsa-hwdep"; case MEDIA_INTF_T_ALSA_SEQUENCER: - return "sequencer"; + return "alsa-sequencer"; case MEDIA_INTF_T_ALSA_TIMER: - return "timer"; + return "alsa-timer"; default: return "unknown-intf"; }