]> git.ipfire.org Git - thirdparty/systemd.git/blobdiff - src/udev/udev-builtin-hwdb.c
udev: drop unused udev struct
[thirdparty/systemd.git] / src / udev / udev-builtin-hwdb.c
index 6ffacf45c7b5d6b4f364c37c0cfa5ea9443b5504..befb009b5c9427440e4f403fee52742e3246640d 100644 (file)
@@ -1,7 +1,4 @@
 /* SPDX-License-Identifier: LGPL-2.1+ */
-/***
-  Copyright 2012 Kay Sievers <kay@vrfy.org>
-***/
 
 #include <fnmatch.h>
 #include <getopt.h>
@@ -14,7 +11,6 @@
 #include "hwdb-util.h"
 #include "parse-util.h"
 #include "string-util.h"
-#include "udev-util.h"
 #include "udev.h"
 
 static sd_hwdb *hwdb;
@@ -164,7 +160,7 @@ static int builtin_hwdb(struct udev_device *dev, int argc, char *argv[], bool te
 
         /* read data from another device than the device we will store the data */
         if (device) {
-                srcdev = udev_device_new_from_device_id(udev_device_get_udev(dev), device);
+                srcdev = udev_device_new_from_device_id(NULL, device);
                 if (!srcdev)
                         return EXIT_FAILURE;
         }
@@ -175,7 +171,7 @@ static int builtin_hwdb(struct udev_device *dev, int argc, char *argv[], bool te
 }
 
 /* called at udev startup and reload */
-static int builtin_hwdb_init(struct udev *udev) {
+static int builtin_hwdb_init(void) {
         int r;
 
         if (hwdb)
@@ -189,12 +185,12 @@ static int builtin_hwdb_init(struct udev *udev) {
 }
 
 /* called on udev shutdown and reload request */
-static void builtin_hwdb_exit(struct udev *udev) {
+static void builtin_hwdb_exit(void) {
         hwdb = sd_hwdb_unref(hwdb);
 }
 
 /* called every couple of seconds during event activity; 'true' if config has changed */
-static bool builtin_hwdb_validate(struct udev *udev) {
+static bool builtin_hwdb_validate(void) {
         return hwdb_validate(hwdb);
 }