/* Reports the temperature in degrees Fahrenheit. The API is in farenheit. It was designed by an imperial measurement luddite.  */
static int wdtpci_get_temperature(int *temperature)
/* Reports the temperature in degrees Fahrenheit. The API is in farenheit. It was designed by an imperial measurement luddite.  */
static int wdtpci_get_temperature(int *temperature)
{
	unsigned short c;
	unsigned long flags;
	spin_lock_irqsave(&wdtpci_lock, flags);
	c = inb(WDT_RT);
	udelay(8);
	spin_unlock_irqrestore(&wdtpci_lock, flags);
	*temperature = (c * 11 / 15) + 7;
	return 0;
}