From: Lukasz Majewski <l.majewski@majess.pl>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH v4 08/24] pmic: Move pmic related code to ./drivers/power directory
Date: Tue, 30 Oct 2012 23:59:52 +0100 [thread overview]
Message-ID: <20121030235952.32ed37a0@jawa> (raw)
In-Reply-To: <50903253.4090408@ti.com>
Hi Tom,
> On 10/30/12 09:57, Lukasz Majewski wrote:
> > The PMIC framework has been moved to its more natural place
> > ./drivers/power from ./drivers/misc directory.
> [snip]
> > drivers/{misc => power/pmic}/pmic_max8997.c | 0 drivers/{misc =>
> > power/pmic}/pmic_max8998.c | 0 drivers/{misc =>
> > power}/pmic_core.c | 0 drivers/{misc =>
> > power}/pmic_dialog.c | 0 drivers/{misc =>
> > power}/pmic_fsl.c | 0 drivers/{misc =>
> > power}/pmic_i2c.c | 0 drivers/{misc =>
> > power}/pmic_spi.c | 0
>
> OK, so I think we need a slightly different re-org, after looking at
> the whole series, sorry. Lets go for:
> drivers/power/pmic/max8998.c, i2c.c, fsl.c, spi.c, etc and libpmic.o
> drivers/power/fuel_gauge/max17402.c and libfuel_gauge.o
> ... etc
I'm a bit confused now....
The approach which I've now proposed is defined at patch 8 (not 4 as
you pointed out):
pmic: Move pmic related code to ./drivers/power directory
It is as follows:
1. The "core" power/pmic subsystem files are moved to: ./drivers/power/
directory (like pmic_core.c pmic_i2c.c etc.). To be more precise those
files are renamed to power_* at patch 22 in the series.
2. There have been created directories for pmic, fuel gauge and battery
for different HW ICs. It is (in my opinion) welcome to combine all
files from the same category to one library (libfuel_gauge.o,
libpmic.o, libbattery.o).
libfuel_gauge.o and libpmic.o are also linked from the top ./Makefile -
due to that MAKEALL with BUILD_DIR works (without any special make
"magic" at ./drivers/power dir.
3. All pmic/power related header files have been moved
to ./include/power directory (with proper names to reflect
corresponding IC circuit - e.g. max8998_pmic.h).
Moreover, the last three patches in the series (22,23,24) start
the process of renaming from "pmic" to "power".
>
> And just leaving them as pmic_i2c.c, etc, if I'm forgetting some
> reason we can't have multiple 'i2c.c' files. Thanks!
>
Sorry, but could you clarify this proposition? From my point of view it
is welcome to provide names with power_* prefix (like power_i2c.c - as
it is defined at patch 22).
I'm aware, that those changes are massive, but after applying last of
the 24 commits, one can evaluate the proposed directory structure as
neat and clear.
Best regards,
Lukasz Majewski
next prev parent reply other threads:[~2012-10-30 22:59 UTC|newest]
Thread overview: 33+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-10-30 16:56 [U-Boot] [PATCH v4 00/24] pmic: Redesign PMIC framework to support multiple instances of devices Lukasz Majewski
2012-10-30 16:56 ` [U-Boot] [PATCH v4 01/24] pmic:i2c: Handle PMIC I2C transmission comprising of two bytes Lukasz Majewski
2012-10-31 6:33 ` Stefano Babic
2012-10-30 16:56 ` [U-Boot] [PATCH v4 02/24] pmic:i2c: Add I2C sensor byte order (big/little) to PMIC framework Lukasz Majewski
2012-10-30 16:56 ` [U-Boot] [PATCH v4 03/24] pmic:max8997: Switch the MAX8997 PMIC to be used with multibus I2C Lukasz Majewski
2012-10-30 16:56 ` [U-Boot] [PATCH v4 04/24] pmic: Extend PMIC framework to support multiple instances of PMIC devices Lukasz Majewski
2012-10-30 16:57 ` [U-Boot] [PATCH v4 05/24] pmic: Introduce power_init_board() method at ./lib/board.c file Lukasz Majewski
2012-10-30 16:57 ` [U-Boot] [PATCH v4 06/24] pmic: Enable power_board_init() support at TRATS Lukasz Majewski
2012-10-30 16:57 ` [U-Boot] [PATCH v4 07/24] pmic:chrg: Common information about charger and battery (power_chrg.h) Lukasz Majewski
2012-10-30 16:57 ` [U-Boot] [PATCH v4 08/24] pmic: Move pmic related code to ./drivers/power directory Lukasz Majewski
2012-10-30 20:02 ` Tom Rini
2012-10-30 22:59 ` Lukasz Majewski [this message]
2012-10-30 23:41 ` Tom Rini
2012-10-30 16:57 ` [U-Boot] [PATCH v4 09/24] pmic: Extend struct pmic to support battery and charger related operations Lukasz Majewski
2012-10-30 16:57 ` [U-Boot] [PATCH v4 10/24] pmic:battery: Support for Trats Battery at PMIC framework Lukasz Majewski
2012-10-30 16:57 ` [U-Boot] [PATCH v4 11/24] pmic:muic: Support for MUIC built into MAX8997 device Lukasz Majewski
2012-10-30 16:57 ` [U-Boot] [PATCH v4 12/24] pmic:fuel-gauge: Support for MAX17042 fuel-gauge Lukasz Majewski
2012-10-30 16:57 ` [U-Boot] [PATCH v4 13/24] pmic:max8997: Function for calculating LDO internal register value Lukasz Majewski
2012-10-30 16:57 ` [U-Boot] [PATCH v4 14/24] arm:trats:pmic: Default PMIC(MAX8997) initialization for Samsung's TRATS board Lukasz Majewski
2012-10-30 16:57 ` [U-Boot] [PATCH v4 15/24] arm:trats:pmic: Enable MUIC (MAX8997) at " Lukasz Majewski
2012-10-30 16:57 ` [U-Boot] [PATCH v4 16/24] arm:trats:pmic: Enable fuel-gauge (MAX17042) " Lukasz Majewski
2012-10-30 16:57 ` [U-Boot] [PATCH v4 17/24] arm:trats:pmic: Enable battery support " Lukasz Majewski
2012-10-30 16:57 ` [U-Boot] [PATCH v4 18/24] pmic:max8997: Support for MAX8997 internal charger control Lukasz Majewski
2012-10-30 16:57 ` [U-Boot] [PATCH v4 19/24] arm:trats:pmic: Power consumption reduction state for Samsung's TRATS board Lukasz Majewski
2012-10-30 16:57 ` [U-Boot] [PATCH v4 20/24] arm:trats:pmic: Support for charging battery at " Lukasz Majewski
2012-10-30 16:57 ` [U-Boot] [PATCH v4 21/24] pmic: Extend PMIC framework to support battery related commands Lukasz Majewski
2012-10-30 16:57 ` [U-Boot] [PATCH v4 22/24] power:pmic: Rename ./drivers/power/pmic_* to ./drivers/power/power_* files Lukasz Majewski
2012-10-30 16:57 ` [U-Boot] [PATCH v4 23/24] power:pmic: Rename CONFIG_PMIC* defines to CONFIG_POWER Lukasz Majewski
2012-10-30 16:57 ` [U-Boot] [PATCH v4 24/24] power:pmic: Rename CONFIG_DIALOG_PMIC defines to CONFIG_DIALOG_POWER Lukasz Majewski
2012-10-31 6:38 ` [U-Boot] [PATCH v4 00/24] pmic: Redesign PMIC framework to support multiple instances of devices Stefano Babic
2012-10-31 9:43 ` Lukasz Majewski
2012-11-03 22:57 ` Tom Rini
2012-11-05 7:34 ` Lukasz Majewski
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=20121030235952.32ed37a0@jawa \
--to=l.majewski@majess.pl \
--cc=u-boot@lists.denx.de \
/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