aboutsummaryrefslogtreecommitdiff
path: root/drivers/misc
diff options
context:
space:
mode:
authorGravatar Andy Shevchenko <andriy.shevchenko@linux.intel.com> 2023-02-02 16:54:12 +0200
committerGravatar Greg Kroah-Hartman <gregkh@linuxfoundation.org> 2023-02-03 07:23:03 +0100
commitf5b3c341a46ec55d93332ee5c254a278af902ffe (patch)
treea31af87db839d1ce65a42ec69e9ee67c813ed23a /drivers/misc
parentMerge tag 'iio-for-6.3a' of https://git.kernel.org/pub/scm/linux/kernel/git/j... (diff)
downloadlinux-f5b3c341a46ec55d93332ee5c254a278af902ffe.tar.gz
linux-f5b3c341a46ec55d93332ee5c254a278af902ffe.tar.bz2
linux-f5b3c341a46ec55d93332ee5c254a278af902ffe.zip
mei: Move uuid_le_cmp() to its only user
There is only a single user of uuid_le_cmp() API, let's make it private to that user. Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com> Link: https://lore.kernel.org/r/20230202145412.87569-1-andriy.shevchenko@linux.intel.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/misc')
-rw-r--r--drivers/misc/mei/mei_dev.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/misc/mei/mei_dev.h b/drivers/misc/mei/mei_dev.h
index 996b70a988be..895011b7a0bf 100644
--- a/drivers/misc/mei/mei_dev.h
+++ b/drivers/misc/mei/mei_dev.h
@@ -13,6 +13,11 @@
#include <linux/mei.h>
#include <linux/mei_cl_bus.h>
+static inline int uuid_le_cmp(const uuid_le u1, const uuid_le u2)
+{
+ return memcmp(&u1, &u2, sizeof(uuid_le));
+}
+
#include "hw.h"
#include "hbm.h"