[PATCH 0/5] Power supply and resume ordering meddling

Andy Green andy at openmoko.com
Mon Jun 9 10:50:25 CEST 2008


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Somebody in the thread at some point said:

|>> I will add support for it to my patch, with the LED trigger about
|>> charging owned by pcf50633.c, which "owns the charger".

|> That would be great.

| Given that there is a charging trigger since ages in the kernel LED
class, it
| looks like adjusting this to get Will's behaviour is a sane path.

It's true, no point duplicating it from charger side if it exists in
battery side.

./include/linux/power_supply.h:

struct power_supply {
...

#ifdef CONFIG_LEDS_TRIGGERS
	struct led_trigger *charging_full_trig;
	char *charging_full_trig_name;
	struct led_trigger *charging_trig;
	char *charging_trig_name;
	struct led_trigger *full_trig;
	char *full_trig_name;
	struct led_trigger *online_trig;
	char *online_trig_name;
#endif
};

Holger this is closer to what your patch is touching, I leave it to you
then.

- -Andy
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)
Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org

iEYEARECAAYFAkhM7tEACgkQOjLpvpq7dMqDvACfWuCtSZ7Zqb1Z52JwpDPZLYLB
1tYAn0xPLg6EvKoZxjdbNuDU2hQ76+3P
=btgh
-----END PGP SIGNATURE-----




More information about the openmoko-kernel mailing list