Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

Bluetooth: btintel_pci: Fix build warning

This fixes the following warning:

drivers/bluetooth/btintel_pcie.c:695:20: warning: unused function 'btintel_pcie_in_rom' [-Wunused-function]
695 | static inline bool btintel_pcie_in_rom(struct btintel_pcie_data *data)
| ^~~~~~~~~~~~~~~~~~~

Signed-off-by: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>

-14
-14
drivers/bluetooth/btintel_pcie.c
··· 685 685 return 0; 686 686 } 687 687 688 - /* BIT(0) - ROM, BIT(1) - IML and BIT(3) - OP 689 - * Sometimes during firmware image switching from ROM to IML or IML to OP image, 690 - * the previous image bit is not cleared by firmware when alive interrupt is 691 - * received. Driver needs to take care of these sticky bits when deciding the 692 - * current image running on controller. 693 - * Ex: 0x10 and 0x11 - both represents that controller is running IML 694 - */ 695 - static inline bool btintel_pcie_in_rom(struct btintel_pcie_data *data) 696 - { 697 - return data->boot_stage_cache & BTINTEL_PCIE_CSR_BOOT_STAGE_ROM && 698 - !(data->boot_stage_cache & BTINTEL_PCIE_CSR_BOOT_STAGE_IML) && 699 - !(data->boot_stage_cache & BTINTEL_PCIE_CSR_BOOT_STAGE_OPFW); 700 - } 701 - 702 688 static inline bool btintel_pcie_in_op(struct btintel_pcie_data *data) 703 689 { 704 690 return data->boot_stage_cache & BTINTEL_PCIE_CSR_BOOT_STAGE_OPFW;