From patchwork Tue Jan 7 21:37:37 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Christopher Heiny X-Patchwork-Id: 3449951 Return-Path: X-Original-To: patchwork-linux-input@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 908C29F2E9 for ; Tue, 7 Jan 2014 21:37:48 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 0BC5320121 for ; Tue, 7 Jan 2014 21:37:47 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 307B420120 for ; Tue, 7 Jan 2014 21:37:44 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753751AbaAGVhn (ORCPT ); Tue, 7 Jan 2014 16:37:43 -0500 Received: from us-mx2.synaptics.com ([192.147.44.131]:26768 "EHLO us-mx2.synaptics.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751350AbaAGVhm (ORCPT ); Tue, 7 Jan 2014 16:37:42 -0500 Received: from unknown (HELO securemail.synaptics.com) ([172.20.21.135]) by us-mx2.synaptics.com with ESMTP; 07 Jan 2014 13:37:41 -0800 Received: from USW-OWA1.synaptics-inc.local ([10.20.24.16]) by securemail.synaptics.com (PGP Universal service); Tue, 07 Jan 2014 13:27:11 -0800 X-PGP-Universal: processed; by securemail.synaptics.com on Tue, 07 Jan 2014 13:27:11 -0800 Received: from brontomerus.synaptics.com (10.3.20.103) by USW-OWA1.synaptics-inc.local (10.20.24.15) with Microsoft SMTP Server (TLS) id 14.3.123.3; Tue, 7 Jan 2014 13:37:45 -0800 From: Christopher Heiny To: Dmitry Torokhov CC: Linux Input , Christopher Heiny , Andrew Duggan , Vincent Huang , Vivian Ly , Daniel Rosenberg , Jean Delvare , Joerie de Gram , Linus Walleij , Benjamin Tissoires Subject: [PATCH] input synaptics-rmi4: Add rmi_version.h Date: Tue, 7 Jan 2014 13:37:37 -0800 Message-ID: <1389130657-4695-1-git-send-email-cheiny@synaptics.com> X-Mailer: git-send-email 1.8.3.1 MIME-Version: 1.0 X-Originating-IP: [10.3.20.103] X-Brightmail-Tracker: AAAAAQAAAWE= Sender: linux-input-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-input@vger.kernel.org X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Adds a file containing driver versioning #defines, allowing convenient script-based tweakage of various versioning info. This is helpful to differentiate various custom and/or development versions of the driver from the main branch of the code. Since rmi_driver.h changes as a result, its copyright date gets updated. Signed-off-by: Christopher Heiny Cc: Dmitry Torokhov Cc: Benjamin Tissoires --- drivers/input/rmi4/rmi_driver.h | 5 ++--- drivers/input/rmi4/rmi_version.h | 24 ++++++++++++++++++++++++ 2 files changed, 26 insertions(+), 3 deletions(-) -- To unsubscribe from this list: send the line "unsubscribe linux-input" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html diff --git a/drivers/input/rmi4/rmi_driver.h b/drivers/input/rmi4/rmi_driver.h index df9ddd8..4438b20 100644 --- a/drivers/input/rmi4/rmi_driver.h +++ b/drivers/input/rmi4/rmi_driver.h @@ -1,5 +1,5 @@ /* - * Copyright (c) 2011-2013 Synaptics Incorporated + * Copyright (c) 2011-2014 Synaptics Incorporated * Copyright (c) 2011 Unixphere * * This program is free software; you can redistribute it and/or modify it @@ -14,8 +14,7 @@ #include #include #include "rmi_bus.h" - -#define RMI_DRIVER_VERSION "1.6" +#include "rmi_version.h" #define SYNAPTICS_INPUT_DEVICE_NAME "Synaptics RMI4 Touch Sensor" #define SYNAPTICS_VENDOR_ID 0x06cb diff --git a/drivers/input/rmi4/rmi_version.h b/drivers/input/rmi4/rmi_version.h new file mode 100644 index 0000000..ed001fa --- /dev/null +++ b/drivers/input/rmi4/rmi_version.h @@ -0,0 +1,24 @@ +/* + * Copyright (c) 2014 Synaptics Incorporated + * + * This program is free software; you can redistribute it and/or modify it + * under the terms of the GNU General Public License version 2 as published by + * the Free Software Foundation. + */ + +#ifndef RMI_VERSION_H +#define RMI_VERSION_H + +#define RMI_VERSION_MAJOR "1" +#define RMI_VERSION_MINOR "19" +#define RMI_VERSION_SUBMINOR "0" + +#define RMI_VERSION_BRANCH "synaptics-rmi4" +#define RMI_EXTRA_NUMBER "0" +#define RMI_EXTRA_STRING "0" + +#define RMI_DRIVER_VERSION RMI_VERSION_MAJOR "." \ + RMI_VERSION_MINOR "." RMI_VERSION_SUBMINOR "-" \ + RMI_EXTRA_STRING + +#endif