From: Wolfram Sang <wsa@the-dreams.de>
To: Linus Torvalds <torvalds@linux-foundation.org>
Cc: linux-i2c@vger.kernel.org,
Linux Kernel Mailing List <linux-kernel@vger.kernel.org>
Subject: Re: [PULL REQUEST] i2c for 4.13
Date: Thu, 13 Jul 2017 12:03:07 +0200 [thread overview]
Message-ID: <20170713100307.7lmn6biehdp3a426@ninjato> (raw)
In-Reply-To: <CA+55aFzHpnRw6Vw3GNGydzQbxK5SUFKkDH-MLUWPm5r1rAHeDQ@mail.gmail.com>
[-- Attachment #1: Type: text/plain, Size: 1260 bytes --]
Linus,
> So I personally tend to much prefer
>
> drivers/i2c/core/acpi.c
> drivers/i2c/core/base.c
> drivers/i2c/core/of.c
> drivers/i2c/core/slave.c
> drivers/i2c/core/smbus.c
> drivers/i2c/core/core.h
>
> as the model. Then things *really* sort together, auto-complete works
> better, and tools like "git diff --dirstat" etc that group changes by
> directories also automatically just do the right thing.
>
> And notice how the filenames are smaller and prettier too? It's just a
> win/win situation.
I am easily convinced by these benefits, thanks for pointing them out.
There was one request from distributions, though, when we once tried to
refactor only ACPI out back then (which we had to revert because of this
request): keep the module name constant. Given that, I am going to take
some middle path and rename like this:
drivers/i2c/acpi.c
drivers/i2c/base.c
drivers/i2c/of.c
drivers/i2c/slave.c
drivers/i2c/smbus.c
drivers/i2c/core.h
and keep the resulting object name 'i2c-core.o'. That implies that the
root directory of 'i2c' will be core only. I think this is fair.
Will implement it hopefully today and send you a pull request ASAP.
Thanks,
Wolfram
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]
next prev parent reply other threads:[~2017-07-13 10:03 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-07-12 15:49 [PULL REQUEST] i2c for 4.13 Wolfram Sang
2017-07-12 15:54 ` Wolfram Sang
2017-07-12 17:16 ` Linus Torvalds
2017-07-13 7:56 ` Uwe Kleine-König
2017-07-13 20:57 ` Peter Rosin
2017-07-13 21:05 ` Linus Torvalds
2017-07-13 21:41 ` Peter Rosin
2017-07-13 10:03 ` Wolfram Sang [this message]
2017-07-13 10:50 ` Wolfram Sang
-- strict thread matches above, loose matches on Subject: below --
2017-08-09 19:29 Wolfram Sang
2017-08-25 14:30 Wolfram Sang
2017-09-01 21:40 Wolfram Sang
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=20170713100307.7lmn6biehdp3a426@ninjato \
--to=wsa@the-dreams.de \
--cc=linux-i2c@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=torvalds@linux-foundation.org \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox