forked from ~ljy/RK356X_SDK_RELEASE

hc
2023-12-11 072de836f53be56a70cecf70b43ae43b7ce17376
kernel/drivers/firmware/edd.c
....@@ -1,3 +1,4 @@
1
+// SPDX-License-Identifier: GPL-2.0-only
12 /*
23 * linux/drivers/firmware/edd.c
34 * Copyright (C) 2002, 2003, 2004 Dell Inc.
....@@ -17,16 +18,6 @@
1718 *
1819 * Please see http://linux.dell.com/edd/results.html for
1920 * the list of BIOSs which have been reported to implement EDD.
20
- *
21
- * This program is free software; you can redistribute it and/or modify
22
- * it under the terms of the GNU General Public License v2.0 as published by
23
- * the Free Software Foundation
24
- *
25
- * This program is distributed in the hope that it will be useful,
26
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
27
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
28
- * GNU General Public License for more details.
29
- *
3021 */
3122
3223 #include <linux/module.h>
....@@ -350,7 +341,7 @@
350341 if (!info || !buf)
351342 return -EINVAL;
352343
353
- p += snprintf(p, left, "%u\n", info->legacy_max_cylinder);
344
+ p += scnprintf(p, left, "%u\n", info->legacy_max_cylinder);
354345 return (p - buf);
355346 }
356347
....@@ -365,7 +356,7 @@
365356 if (!info || !buf)
366357 return -EINVAL;
367358
368
- p += snprintf(p, left, "%u\n", info->legacy_max_head);
359
+ p += scnprintf(p, left, "%u\n", info->legacy_max_head);
369360 return (p - buf);
370361 }
371362
....@@ -380,7 +371,7 @@
380371 if (!info || !buf)
381372 return -EINVAL;
382373
383
- p += snprintf(p, left, "%u\n", info->legacy_sectors_per_track);
374
+ p += scnprintf(p, left, "%u\n", info->legacy_sectors_per_track);
384375 return (p - buf);
385376 }
386377