spi: fsl-dspi: Convert to use regmap framework's endianness method.
authorXiubo Li <Li.Xiubo@freescale.com>
Mon, 18 Aug 2014 07:48:20 +0000 (15:48 +0800)
committerMark Brown <broonie@linaro.org>
Mon, 18 Aug 2014 14:41:54 +0000 (09:41 -0500)
Signed-off-by: Xiubo Li <Li.Xiubo@freescale.com>
Acked-by: Chao Fu <b44548@freescale.com>
Signed-off-by: Mark Brown <broonie@linaro.org>
Documentation/devicetree/bindings/spi/spi-fsl-dspi.txt
drivers/spi/spi-fsl-dspi.c

index 5376de40f10b562ba218651433be71508e4c560b..cbbe16ed3874f88c1902b90253afc756a01acb0d 100644 (file)
@@ -10,7 +10,12 @@ Required properties:
 - pinctrl-names: must contain a "default" entry.
 - spi-num-chipselects : the number of the chipselect signals.
 - bus-num : the slave chip chipselect signal number.
-- big-endian : if DSPI modudle is big endian, the bool will be set in node.
+
+Optional property:
+- big-endian: If present the dspi device's registers are implemented
+  in big endian mode, otherwise in native mode(same with CPU), for more
+  detail please see: Documentation/devicetree/bindings/regmap/regmap.txt.
+
 Example:
 
 dspi0@4002c000 {
index 5021ddf03f6035d882f1beee5fa8ebd134d40a4e..ebc4d1fd76e2549f29b35817d50db043c13f86f2 100644 (file)
@@ -493,9 +493,6 @@ static int dspi_probe(struct platform_device *pdev)
        }
 
        dspi_regmap_config.lock_arg = dspi;
-       dspi_regmap_config.val_format_endian =
-               of_property_read_bool(np, "big-endian")
-                       ? REGMAP_ENDIAN_BIG : REGMAP_ENDIAN_DEFAULT;
        dspi->regmap = devm_regmap_init_mmio_clk(&pdev->dev, "dspi", base,
                                                &dspi_regmap_config);
        if (IS_ERR(dspi->regmap)) {