Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932644AbbGUMio (ORCPT ); Tue, 21 Jul 2015 08:38:44 -0400 Received: from smtp01.smtpout.orange.fr ([80.12.242.123]:51189 "EHLO smtp.smtpout.orange.fr" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932115AbbGUMim (ORCPT ); Tue, 21 Jul 2015 08:38:42 -0400 X-ME-Helo: nestor.ysoft.org X-ME-Auth: eWFubi5jYW50aW4yQHdhbmFkb28uZnI= X-ME-Date: Tue, 21 Jul 2015 14:38:40 +0200 X-ME-IP: 86.201.141.183 Message-ID: <55AE3D4D.2040706@laposte.net> Date: Tue, 21 Jul 2015 14:38:37 +0200 From: Yann Cantin User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.7.0 MIME-Version: 1.0 To: Oliver Neukum CC: linux-input@vger.kernel.org, linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org, linux-api@vger.kernel.org, dmitry.torokhov@gmail.com, jkosina@suse.cz, gregkh@linuxfoundation.org Subject: Re: [RFC ebeam PATCH 2/2] input: misc: New USB eBeam input driver References: <1437426199-29866-1-git-send-email-yann.cantin@laposte.net> <1437426199-29866-3-git-send-email-yann.cantin@laposte.net> <1437466763.3823.1.camel@suse.com> In-Reply-To: <1437466763.3823.1.camel@suse.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 871 Lines: 36 Hi, Le 21/07/2015 10:19, Oliver Neukum a écrit : > On Mon, 2015-07-20 at 23:03 +0200, Yann Cantin wrote: >> diff --git a/drivers/input/misc/ebeam.c b/drivers/input/misc/ebeam.c >> new file mode 100644 >> index 0000000..79cac51 >> --- /dev/null >> +++ b/drivers/input/misc/ebeam.c >> +/* Electronics For Imaging, Inc */ >> +#define USB_VENDOR_ID_EFI 0x2650 > > You are defining these IDs twice. That is not good. Is it okay to do this : #if !defined(CONFIG_INPUT_EBEAM_USB) #define USB_VENDOR_ID_EFI 0x2650 #... #endif so that the driver can also be build outside the kernel tree ? thanks, -- Yann Cantin A4FEB47F -- -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/