1 /* SPDX-License-Identifier: GPL-2.0 */ 2 /* 3 * Copyright (C) 2018 Western Digital Corporation 4 */ 5 #ifndef UFS_BSG_H 6 #define UFS_BSG_H 7 8 #include <linux/bsg-lib.h> 9 #include <scsi/scsi.h> 10 #include <scsi/scsi_host.h> 11 12 #include "ufshcd.h" 13 #include "ufs.h" 14 15 #ifdef CONFIG_SCSI_UFS_BSG 16 void ufs_bsg_remove(struct ufs_hba *hba); 17 int ufs_bsg_probe(struct ufs_hba *hba); 18 #else ufs_bsg_remove(struct ufs_hba * hba)19static inline void ufs_bsg_remove(struct ufs_hba *hba) {} ufs_bsg_probe(struct ufs_hba * hba)20static inline int ufs_bsg_probe(struct ufs_hba *hba) {return 0; } 21 #endif 22 23 #endif /* UFS_BSG_H */ 24