Photo-dimerization of a chalcone-based side chain polymer for the alignment of ferroelectric liquid crystals