Data-line inspection-use switching elements for switching the supply of inspection-use display signals are individually connected to a plurality of data lines, and scanning-line inspection-use switching elements for switching the supply of inspection-use scanning signals are individually connected to a plurality of scanning lines. A rectifying diode has a grounded anode coupled to an anode of a clamp diode, and a cathode coupled to the second winding. Each coil layer of the write coil extends continuously between the upper and the lower poles through a plane defined by the write gap layer.