Add a driver for the NXP LM75A temperature sensor.
The chip is used in the Sun Ultra 45.
Note, that this is not the same as the TI LM75A temperature sensor (lmtemp).
More corrections...
I was also looking at the build breakage fixed by the previous commit.
I found another issue (non-build breaking) though:
Free the results from prom_getprop() in the newly added code, if a
subsequent malloc() fails (don't lose memory).
Also properly indent a line whose preceding condition shifted right
(existing code from previously, now not always executed).
Feel free to redo these changes some other (non build-breaking) way.
Fix up PROM's where reg is encoded as a 64-bit and a 32-bit value
(e.g. 00000400 0fc62020 00000010), but we want 2 x 64-bit values.
U45 with OBP 4.21.2 has jbus-i2c configured like this.
pidfile: Fix a few issues with error paths.
pidfile_unlock() returns -1 on error rather than EBADF which is now errno.
pidfile_read() now closes the opened fd on error if not pidfile_fd.
pidfile_lock() now closed pidfile_fd if failing to strdup to pidfile_path.
A long standing issue correctly setting FD_CLOEXEC has been resolved in the
case where O_CLOEXEC is not defined.