Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 323482
b: refs/heads/master
c: 372d297
h: refs/heads/master
v: v3
  • Loading branch information
Axel Lin authored and Jiri Kosina committed Sep 17, 2012
1 parent 8885142 commit 1c37f1e
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 4629fd160f7da96b9e6b5abf3f65dbf53642467b
refs/heads/master: 372d297b8c8968d7a05e4a63911bea8ec335e031
18 changes: 9 additions & 9 deletions trunk/drivers/hid/hid-prodikeys.c
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ static ssize_t show_channel(struct device *dev,
struct device_attribute *attr, char *buf)
{
struct hid_device *hdev = container_of(dev, struct hid_device, dev);
struct pk_device *pk = (struct pk_device *)hid_get_drvdata(hdev);
struct pk_device *pk = hid_get_drvdata(hdev);

dbg_hid("pcmidi sysfs read channel=%u\n", pk->pm->midi_channel);

Expand All @@ -118,7 +118,7 @@ static ssize_t store_channel(struct device *dev,
struct device_attribute *attr, const char *buf, size_t count)
{
struct hid_device *hdev = container_of(dev, struct hid_device, dev);
struct pk_device *pk = (struct pk_device *)hid_get_drvdata(hdev);
struct pk_device *pk = hid_get_drvdata(hdev);

unsigned channel = 0;

Expand All @@ -142,7 +142,7 @@ static ssize_t show_sustain(struct device *dev,
struct device_attribute *attr, char *buf)
{
struct hid_device *hdev = container_of(dev, struct hid_device, dev);
struct pk_device *pk = (struct pk_device *)hid_get_drvdata(hdev);
struct pk_device *pk = hid_get_drvdata(hdev);

dbg_hid("pcmidi sysfs read sustain=%u\n", pk->pm->midi_sustain);

Expand All @@ -155,7 +155,7 @@ static ssize_t store_sustain(struct device *dev,
struct device_attribute *attr, const char *buf, size_t count)
{
struct hid_device *hdev = container_of(dev, struct hid_device, dev);
struct pk_device *pk = (struct pk_device *)hid_get_drvdata(hdev);
struct pk_device *pk = hid_get_drvdata(hdev);

unsigned sustain = 0;

Expand All @@ -181,7 +181,7 @@ static ssize_t show_octave(struct device *dev,
struct device_attribute *attr, char *buf)
{
struct hid_device *hdev = container_of(dev, struct hid_device, dev);
struct pk_device *pk = (struct pk_device *)hid_get_drvdata(hdev);
struct pk_device *pk = hid_get_drvdata(hdev);

dbg_hid("pcmidi sysfs read octave=%d\n", pk->pm->midi_octave);

Expand All @@ -194,7 +194,7 @@ static ssize_t store_octave(struct device *dev,
struct device_attribute *attr, const char *buf, size_t count)
{
struct hid_device *hdev = container_of(dev, struct hid_device, dev);
struct pk_device *pk = (struct pk_device *)hid_get_drvdata(hdev);
struct pk_device *pk = hid_get_drvdata(hdev);

int octave = 0;

Expand Down Expand Up @@ -759,7 +759,7 @@ static int pk_input_mapping(struct hid_device *hdev, struct hid_input *hi,
struct hid_field *field, struct hid_usage *usage,
unsigned long **bit, int *max)
{
struct pk_device *pk = (struct pk_device *)hid_get_drvdata(hdev);
struct pk_device *pk = hid_get_drvdata(hdev);
struct pcmidi_snd *pm;

pm = pk->pm;
Expand All @@ -777,7 +777,7 @@ static int pk_input_mapping(struct hid_device *hdev, struct hid_input *hi,
static int pk_raw_event(struct hid_device *hdev, struct hid_report *report,
u8 *data, int size)
{
struct pk_device *pk = (struct pk_device *)hid_get_drvdata(hdev);
struct pk_device *pk = hid_get_drvdata(hdev);
int ret = 0;

if (1 == pk->pm->ifnum) {
Expand Down Expand Up @@ -858,7 +858,7 @@ static int pk_probe(struct hid_device *hdev, const struct hid_device_id *id)

static void pk_remove(struct hid_device *hdev)
{
struct pk_device *pk = (struct pk_device *)hid_get_drvdata(hdev);
struct pk_device *pk = hid_get_drvdata(hdev);
struct pcmidi_snd *pm;

pm = pk->pm;
Expand Down

0 comments on commit 1c37f1e

Please sign in to comment.