hc
2024-02-20 102a0743326a03cd1a1202ceda21e175b7d3575c
kernel/drivers/base/regmap/regmap-w1.c
....@@ -1,13 +1,9 @@
1
-/*
2
- * Register map access API - W1 (1-Wire) support
3
- *
4
- * Copyright (c) 2017 Radioavionica Corporation
5
- * Author: Alex A. Mihaylov <minimumlaw@rambler.ru>
6
- *
7
- * This program is free software; you can redistribute it and/or modify
8
- * it under the terms of the GNU General Public License version 2 as
9
- * published by the Free Software Foundation
10
- */
1
+// SPDX-License-Identifier: GPL-2.0
2
+//
3
+// Register map access API - W1 (1-Wire) support
4
+//
5
+// Copyright (c) 2017 Radioavionica Corporation
6
+// Author: Alex A. Mihaylov <minimumlaw@rambler.ru>
117
128 #include <linux/regmap.h>
139 #include <linux/module.h>
....@@ -219,8 +215,6 @@
219215
220216 return __regmap_init(w1_dev, bus, w1_dev, config,
221217 lock_key, lock_name);
222
-
223
- return NULL;
224218 }
225219 EXPORT_SYMBOL_GPL(__regmap_init_w1);
226220
....@@ -237,8 +231,6 @@
237231
238232 return __devm_regmap_init(w1_dev, bus, w1_dev, config,
239233 lock_key, lock_name);
240
-
241
- return NULL;
242234 }
243235 EXPORT_SYMBOL_GPL(__devm_regmap_init_w1);
244236