Add code to set and reset open-drain mode on the bus when requested.

Submitted by:	Michal Meloun <meloun@miracle.cz>
Rewrap long lines; no functional changes.

Submitted by:	Michal Meloun <meloun@miracle.cz>