summaryrefslogtreecommitdiff
path: root/src/shared/udev-util.c
diff options
context:
space:
mode:
authornl6720 <nl6720@gmail.com>2022-07-04 17:26:30 +0300
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2022-07-04 19:56:53 +0200
commit0e6858232387050b2bff15365043914e4c764d7c (patch)
tree36f91f8833e667d35cedfe610da1b39e9d80b26e /src/shared/udev-util.c
parent7c38952e68cd8a55090771830b604bf36c8f6f50 (diff)
downloadsystemd-0e6858232387050b2bff15365043914e4c764d7c.tar.gz
tree-wide: link to docs.kernel.org for kernel documentation
https://www.kernel.org/ links to https://docs.kernel.org/ for the documentation. See https://git.kernel.org/pub/scm/docs/kernel/website.git/commit/?id=ebc1c372850f249dd143c6d942e66c88ec610520 These URLs are shorter and nicer looking.
Diffstat (limited to 'src/shared/udev-util.c')
-rw-r--r--src/shared/udev-util.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/shared/udev-util.c b/src/shared/udev-util.c
index 1eb5d8fb53..5eed3d95fd 100644
--- a/src/shared/udev-util.c
+++ b/src/shared/udev-util.c
@@ -608,7 +608,7 @@ static int device_is_power_sink(sd_device *device) {
assert(device);
/* USB-C power supply device has two power roles: source or sink. See,
- * https://www.kernel.org/doc/Documentation/ABI/testing/sysfs-class-typec */
+ * https://docs.kernel.org/admin-guide/abi-testing.html#abi-file-testing-sysfs-class-typec */
r = sd_device_enumerator_new(&e);
if (r < 0)
@@ -690,7 +690,7 @@ int on_ac_power(void) {
/* We assume every power source is AC, except for batteries. See
* https://github.com/torvalds/linux/blob/4eef766b7d4d88f0b984781bc1bcb574a6eafdc7/include/linux/power_supply.h#L176
* for defined power source types. Also see:
- * https://www.kernel.org/doc/Documentation/ABI/testing/sysfs-class-power */
+ * https://docs.kernel.org/admin-guide/abi-testing.html#abi-file-testing-sysfs-class-power */
if (streq(val, "Battery")) {
log_device_debug(d, "The power supply is battery, ignoring.");
continue;