Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 18416
b: refs/heads/master
c: 5d870c8
h: refs/heads/master
v: v3
  • Loading branch information
Andrew Morton authored and Greg Kroah-Hartman committed Jan 14, 2006
1 parent 7f18adf commit 92bd122
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 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: 7111763d391b0c5a949a4f2575aa88cd585f0ff6
refs/heads/master: 5d870c8e216f121307445c71caa72e7e10a20061
7 changes: 6 additions & 1 deletion trunk/drivers/spi/spi.c
Original file line number Diff line number Diff line change
Expand Up @@ -480,6 +480,11 @@ EXPORT_SYMBOL_GPL(spi_busnum_to_master);

/*-------------------------------------------------------------------------*/

static void spi_complete(void *arg)
{
complete(arg);
}

/**
* spi_sync - blocking/synchronous SPI data transfers
* @spi: device with which data will be exchanged
Expand Down Expand Up @@ -508,7 +513,7 @@ int spi_sync(struct spi_device *spi, struct spi_message *message)
DECLARE_COMPLETION(done);
int status;

message->complete = (void (*)(void *)) complete;
message->complete = spi_complete;
message->context = &done;
status = spi_async(spi, message);
if (status == 0)
Expand Down
2 changes: 1 addition & 1 deletion trunk/include/linux/spi/spi.h
Original file line number Diff line number Diff line change
Expand Up @@ -374,7 +374,7 @@ struct spi_message {
*/

/* completion is reported through a callback */
void FASTCALL((*complete)(void *context));
void (*complete)(void *context);
void *context;
unsigned actual_length;
int status;
Expand Down

0 comments on commit 92bd122

Please sign in to comment.