mdegC 1834 drivers/ntb/hw/idt/ntb_hw_idt.c static inline s8 idt_get_deg(long mdegC) mdegC 1836 drivers/ntb/hw/idt/ntb_hw_idt.c return mdegC / 1000; mdegC 1845 drivers/ntb/hw/idt/ntb_hw_idt.c static inline u8 idt_get_deg_frac(long mdegC) mdegC 1847 drivers/ntb/hw/idt/ntb_hw_idt.c return (mdegC % 1000) >= 500 ? 5 : 0; mdegC 1856 drivers/ntb/hw/idt/ntb_hw_idt.c static inline u8 idt_temp_get_fmt(long mdegC) mdegC 1858 drivers/ntb/hw/idt/ntb_hw_idt.c return (idt_get_deg(mdegC) << 1) | (idt_get_deg_frac(mdegC) ? 1 : 0);