mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-07 11:26:02 +09:00
UPSTREAM: scsi: ufs: Move the struct ufs_ref_clk definition
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>
Bug: 234653003
(cherry picked from commit 743b09d854)
Change-Id: Ifac169478b282b025f21ddcc05f50d7159f3ee06
Signed-off-by: Bart Van Assche <bvanassche@google.com>
This commit is contained in:
committed by
Bart Van Assche
parent
c32bb82fd9
commit
5d99de46b8
@@ -416,11 +416,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,
|
||||
|
||||
@@ -8036,6 +8036,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},
|
||||
|
||||
Reference in New Issue
Block a user