From: Joachim Eastwood Date: Wed, 6 May 2015 18:09:09 +0000 (+0200) Subject: of: add helper function to retrive match data X-Git-Tag: omap-for-v4.2/fixes-rc1^2~48^2~2^2~12 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3386e0fa905c31bf1dafa2cbe2ecceb7e5ce2e66;p=pandora-kernel.git of: add helper function to retrive match data It's a common operation for device drivers to retrive the data member from of_device_id struct in their probe function. Most driver end up doing: const struct of_device_id *match; match = of_match_device(driver_of_match, &pdev->dev); driver->data = match->data; With the of_device_get_match_data helper function all this can done in one go. Signed-off-by: Joachim Eastwood [robh: add missing inline to dummmy declaration] Signed-off-by: Rob Herring --- Reading git-diff-tree failed