]> git.baikalelectronics.ru Git - kernel.git/commitdiff
scsi: ufs: Move the struct ufs_ref_clk definition
authorBart Van Assche <bvanassche@acm.org>
Tue, 19 Apr 2022 22:58:10 +0000 (15:58 -0700)
committerMartin K. Petersen <martin.petersen@oracle.com>
Tue, 26 Apr 2022 03:23:04 +0000 (23:23 -0400)
Move the definition of this data structure since it is only used in a
single source file.

Link: https://lore.kernel.org/r/20220419225811.4127248-28-bvanassche@acm.org
Tested-by: Bean Huo <beanhuo@micron.com>
Reviewed-by: Avri Altman <avri.altman@wdc.com>
Reviewed-by: Bean Huo <beanhuo@micron.com>
Signed-off-by: Bart Van Assche <bvanassche@acm.org>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/ufs/ufs.h
drivers/scsi/ufs/ufshcd.c

index 225b5b4a2a7efc79a58bdedb66dd74a53d4023c0..f52173b8ad96652d1f06a3a5842a9cea6c28ac4a 100644 (file)
@@ -415,11 +415,6 @@ enum ufs_ref_clk_freq {
        REF_CLK_FREQ_INVAL      = -1,
 };
 
-struct ufs_ref_clk {
-       unsigned long freq_hz;
-       enum ufs_ref_clk_freq val;
-};
-
 /* Query response result code */
 enum {
        QUERY_RESULT_SUCCESS                    = 0x00,
index 12e02d6539900ab80f3ad7054005658267c3da70..1b87f26b51933272a93dc4a002ec12523666af27 100644 (file)
@@ -7959,6 +7959,11 @@ out:
        return err;
 }
 
+struct ufs_ref_clk {
+       unsigned long freq_hz;
+       enum ufs_ref_clk_freq val;
+};
+
 static struct ufs_ref_clk ufs_ref_clk_freqs[] = {
        {19200000, REF_CLK_FREQ_19_2_MHZ},
        {26000000, REF_CLK_FREQ_26_MHZ},