From patchwork Wed Jun 21 08:08:06 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Johannes Thumshirn X-Patchwork-Id: 9801067 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 941EC600C5 for ; Wed, 21 Jun 2017 08:09:36 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 828B728501 for ; Wed, 21 Jun 2017 08:09:36 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 76A5E2853C; Wed, 21 Jun 2017 08:09:36 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.9 required=2.0 tests=BAYES_00,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 021C428501 for ; Wed, 21 Jun 2017 08:09:36 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752528AbdFUIIi (ORCPT ); Wed, 21 Jun 2017 04:08:38 -0400 Received: from mx2.suse.de ([195.135.220.15]:42216 "EHLO mx1.suse.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751953AbdFUIIe (ORCPT ); Wed, 21 Jun 2017 04:08:34 -0400 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (charybdis-ext.suse.de [195.135.220.254]) by mx1.suse.de (Postfix) with ESMTP id CE516ABBD; Wed, 21 Jun 2017 08:08:31 +0000 (UTC) From: Johannes Thumshirn To: Hans Verkuil , Mauro Carvalho Chehab Cc: Linux Kernel Mailinglist , linux-media@vger.kernel.org, linux-samsung-soc@vger.kernel.org, devel@driverdev.osuosl.org, linux-fbdev@vger.kernel.org, Andrew Morton , Johannes Thumshirn Subject: [PATCH RESEND 1/7] [media] media: introduce MEDIA_REVISION macro Date: Wed, 21 Jun 2017 10:08:06 +0200 Message-Id: <20170621080812.6817-2-jthumshirn@suse.de> X-Mailer: git-send-email 2.12.3 In-Reply-To: <20170621080812.6817-1-jthumshirn@suse.de> References: <20170621080812.6817-1-jthumshirn@suse.de> Sender: linux-samsung-soc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-samsung-soc@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Currently the media code abuses the KERNEL_VERSION macro to encode a version triplet. Introduce a MEDIA_REVISION macro to get rid of the confusing and creative KERNEL_VERSION usage in the media subsystem. Signed-off-by: Johannes Thumshirn --- include/uapi/linux/media.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/include/uapi/linux/media.h b/include/uapi/linux/media.h index 4890787731b8..25e2ae4432bd 100644 --- a/include/uapi/linux/media.h +++ b/include/uapi/linux/media.h @@ -30,7 +30,9 @@ #include #include -#define MEDIA_API_VERSION KERNEL_VERSION(0, 1, 0) +#define MEDIA_REVISION(a,b,c) (((a) << 16) + ((b) << 8) + (c)) + +#define MEDIA_API_VERSION MEDIA_REVISION(0, 1, 0) struct media_device_info { char driver[16];