[PATCH 5.13 169/300] counter: 104-quad-8: Return error when invalid mode during ceiling_write