mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 10:41:38 -04:00
Merge git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/driver-core-2.6
* git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/driver-core-2.6: wm97xx_batery: replace driver_data with dev_get_drvdata() omap: video: remove direct access of driver_data Sound: remove direct access of driver_data driver model: fix show/store prototypes in doc. Firmware: firmware_class, fix lock imbalance Driver Core: remove BUS_ID_SIZE sparc: remove driver-core BUS_ID_SIZE partitions: fix broken uevent_suppress conversion devres: WARN() and return, don't crash on device_del() of uninitialized device
This commit is contained in:
commit
a4dc32374e
9 changed files with 27 additions and 19 deletions
|
|
@ -1254,7 +1254,7 @@ static struct fb_ops omapfb_ops = {
|
|||
static ssize_t omapfb_show_caps_num(struct device *dev,
|
||||
struct device_attribute *attr, char *buf)
|
||||
{
|
||||
struct omapfb_device *fbdev = (struct omapfb_device *)dev->driver_data;
|
||||
struct omapfb_device *fbdev = dev_get_drvdata(dev);
|
||||
int plane;
|
||||
size_t size;
|
||||
struct omapfb_caps caps;
|
||||
|
|
@ -1274,7 +1274,7 @@ static ssize_t omapfb_show_caps_num(struct device *dev,
|
|||
static ssize_t omapfb_show_caps_text(struct device *dev,
|
||||
struct device_attribute *attr, char *buf)
|
||||
{
|
||||
struct omapfb_device *fbdev = (struct omapfb_device *)dev->driver_data;
|
||||
struct omapfb_device *fbdev = dev_get_drvdata(dev);
|
||||
int i;
|
||||
struct omapfb_caps caps;
|
||||
int plane;
|
||||
|
|
@ -1321,7 +1321,7 @@ static DEVICE_ATTR(caps_text, 0444, omapfb_show_caps_text, NULL);
|
|||
static ssize_t omapfb_show_panel_name(struct device *dev,
|
||||
struct device_attribute *attr, char *buf)
|
||||
{
|
||||
struct omapfb_device *fbdev = (struct omapfb_device *)dev->driver_data;
|
||||
struct omapfb_device *fbdev = dev_get_drvdata(dev);
|
||||
|
||||
return snprintf(buf, PAGE_SIZE, "%s\n", fbdev->panel->name);
|
||||
}
|
||||
|
|
@ -1330,7 +1330,7 @@ static ssize_t omapfb_show_bklight_level(struct device *dev,
|
|||
struct device_attribute *attr,
|
||||
char *buf)
|
||||
{
|
||||
struct omapfb_device *fbdev = (struct omapfb_device *)dev->driver_data;
|
||||
struct omapfb_device *fbdev = dev_get_drvdata(dev);
|
||||
int r;
|
||||
|
||||
if (fbdev->panel->get_bklight_level) {
|
||||
|
|
@ -1345,7 +1345,7 @@ static ssize_t omapfb_store_bklight_level(struct device *dev,
|
|||
struct device_attribute *attr,
|
||||
const char *buf, size_t size)
|
||||
{
|
||||
struct omapfb_device *fbdev = (struct omapfb_device *)dev->driver_data;
|
||||
struct omapfb_device *fbdev = dev_get_drvdata(dev);
|
||||
int r;
|
||||
|
||||
if (fbdev->panel->set_bklight_level) {
|
||||
|
|
@ -1364,7 +1364,7 @@ static ssize_t omapfb_store_bklight_level(struct device *dev,
|
|||
static ssize_t omapfb_show_bklight_max(struct device *dev,
|
||||
struct device_attribute *attr, char *buf)
|
||||
{
|
||||
struct omapfb_device *fbdev = (struct omapfb_device *)dev->driver_data;
|
||||
struct omapfb_device *fbdev = dev_get_drvdata(dev);
|
||||
int r;
|
||||
|
||||
if (fbdev->panel->get_bklight_level) {
|
||||
|
|
@ -1397,7 +1397,7 @@ static struct attribute_group panel_attr_grp = {
|
|||
static ssize_t omapfb_show_ctrl_name(struct device *dev,
|
||||
struct device_attribute *attr, char *buf)
|
||||
{
|
||||
struct omapfb_device *fbdev = (struct omapfb_device *)dev->driver_data;
|
||||
struct omapfb_device *fbdev = dev_get_drvdata(dev);
|
||||
|
||||
return snprintf(buf, PAGE_SIZE, "%s\n", fbdev->ctrl->name);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue