Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1686428

Re: [PULL REQUEST] i2c for 4.13

From Wolfram Sang <wsa@the-dreams.de>
Newsgroups linux.kernel
Subject Re: [PULL REQUEST] i2c for 4.13
Date 2017-07-13 12:10 +0200
Message-ID <u2Jei-4ic-33@gated-at.bofh.it> (permalink)
References <u2s3M-1DQ-17@gated-at.bofh.it> <u2tsS-2Fq-21@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


[Multipart message — attachments visible in raw view] - view raw

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

Back to linux.kernel | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

[PULL REQUEST] i2c for 4.13 Wolfram Sang <wsa@the-dreams.de> - 2017-07-12 17:50 +0200
  Re: [PULL REQUEST] i2c for 4.13 Wolfram Sang <wsa@the-dreams.de> - 2017-07-12 18:00 +0200
  Re: [PULL REQUEST] i2c for 4.13 Linus Torvalds <torvalds@linux-foundation.org> - 2017-07-12 19:20 +0200
    Re: [PULL REQUEST] i2c for 4.13 Uwe Kleine-König          <u.kleine-koenig@pengutronix.de> - 2017-07-13 10:00 +0200
      Re: [PULL REQUEST] i2c for 4.13 Linus Torvalds <torvalds@linux-foundation.org> - 2017-07-13 23:10 +0200
    Re: [PULL REQUEST] i2c for 4.13 Wolfram Sang <wsa@the-dreams.de> - 2017-07-13 12:10 +0200
      Re: [PULL REQUEST] i2c for 4.13 Wolfram Sang <wsa@the-dreams.de> - 2017-07-13 13:00 +0200

csiph-web