From: Wolfgang Grandegger <wg@grandegger.com>
To: Oliver Hartkopp <socketcan@hartkopp.net>
Cc: Marc Kleine-Budde <mkl@pengutronix.de>,
s.grosjean@peak-system.com,
Linux CAN mailing list <linux-can@vger.kernel.org>
Subject: Re: [PATCH] Add PEAK System USB adapters core driver
Date: Wed, 11 Jan 2012 13:28:29 +0100 [thread overview]
Message-ID: <4F0D806D.4090003@grandegger.com> (raw)
In-Reply-To: <4F0D648D.5030706@hartkopp.net>
On 01/11/2012 11:29 AM, Oliver Hartkopp wrote:
> On 11.01.2012 11:12, Wolfgang Grandegger wrote:
>
>> On 01/11/2012 10:50 AM, Marc Kleine-Budde wrote:
>>> On 01/11/2012 10:23 AM, Grosjean Stephane wrote:
>
>>> Documentation/kbuild/makefiles.txt has this example:
>>>
>>> obj-$(CONFIG_EXT2_FS) += ext2.o
>>> ext2-y := balloc.o dir.o file.o ialloc.o inode.o ioctl.o \
>>> namei.o super.o symlink.o
>>> ext2-$(CONFIG_EXT2_FS_XATTR) += xattr.o xattr_user.o \
>>> xattr_trusted.o
>>>
>>> Which translates into (untested, though):
>>>
>>> obj-$(CONFIG_CAN_PEAK_USB) += peak_usb.o
>>> peak_usb-y := peak_usb_core.o pcan_usb.o pcan_usb_pro.o
>>>
>>> With a peak_usb_core.c file.
>>
>> I suggested to use peak_usb.c (instead of pcan_core.c) to have a
>> consistent naming (header file and prefix). This seems not to be
>> possible. I was not aware of that. Naming the files peak_usb_core.c and
>> peak_usb_core.h seems a good alternative.
>
>
>
> pcan is the adapter model name and peak is the manufacturer name.
>
> Then i would suggest to name all building source files with pcan_*
>
> like:
>
> pcan_usb_core.c
> pcan_usb_core.h
> pcan_usb.c
> pcan_usb_pro.c
>
> resulting in a peak_usb.ko
I don't care about the name but it should be used consistently, for the
sake of readability.
Wolfgang.
next prev parent reply other threads:[~2012-01-11 12:28 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-12-22 13:11 [PATCH] Add PEAK System USB adapters core driver Stephane Grosjean
2011-12-22 21:41 ` Sebastian Haas
2011-12-23 9:33 ` Grosjean Stephane
2011-12-23 11:48 ` dev
2012-01-10 12:53 ` Marc Kleine-Budde
2012-01-10 10:17 ` Wolfgang Grandegger
2012-01-10 15:22 ` Oliver Hartkopp
2012-01-10 15:35 ` Wolfgang Grandegger
2012-01-11 9:23 ` Grosjean Stephane
2012-01-11 9:50 ` Marc Kleine-Budde
2012-01-11 10:09 ` Grosjean Stephane
2012-01-11 10:12 ` Wolfgang Grandegger
2012-01-11 10:29 ` Oliver Hartkopp
2012-01-11 12:28 ` Wolfgang Grandegger [this message]
2012-01-11 9:59 ` Wolfgang Grandegger
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4F0D806D.4090003@grandegger.com \
--to=wg@grandegger.com \
--cc=linux-can@vger.kernel.org \
--cc=mkl@pengutronix.de \
--cc=s.grosjean@peak-system.com \
--cc=socketcan@hartkopp.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.