@@ -103,7 +103,7 @@ typedef struct PropertyDisplayDimensions
103
103
u32 vHeight ;
104
104
PropertyTag dTag ; // Depth
105
105
u32 depth ;
106
- PropertyTag fTag ; // Framebuffer
106
+ PropertyTag fTag ; // Framebuffer
107
107
u32 bufferAddr ;
108
108
u32 bufferSize ;
109
109
}
@@ -179,7 +179,7 @@ static u32 write_read(u32 channel, uintptr_t data)
179
179
180
180
// Read and return mailbox result
181
181
result = read (channel );
182
-
182
+
183
183
// Output error if result of read does not match write channel
184
184
if ((result & 0x0F ) != channel )
185
185
puts ("Read channel does not match write!" );
@@ -204,8 +204,8 @@ static int property_get(void *property, u32 propertySize)
204
204
u8 buffer [bufferSize + 15 ];
205
205
// Adjust pointer so that it is exactly 16 byte aligned
206
206
PropertyBuffer * propBuffer =
207
- (PropertyBuffer * )(((u32 )buffer + 15 ) & ~15 );
208
- /* __attribute__((aligned(16))) */
207
+ (PropertyBuffer * )(((u32 )buffer + 15 ) & ~15 );
208
+ /* __attribute__((aligned(16))) */
209
209
u32 * endTag , bufferAddress ;
210
210
211
211
// Initialize with size, request code and copy tags
@@ -221,7 +221,7 @@ static int property_get(void *property, u32 propertySize)
221
221
// reading back the result, which will match the write if success
222
222
bufferAddress = GPU_MEM_BASE | (u32 )propBuffer ;
223
223
if (write_read (CHANNEL_PROPERTY_TAGS_OUT , bufferAddress ) !=
224
- bufferAddress )
224
+ bufferAddress )
225
225
{
226
226
puts ("write_read() failed" );
227
227
return -1 ;
@@ -261,13 +261,13 @@ u32 SetDisplayResolution(u32 *width, u32 *height, u32 *depth,
261
261
dimensions .pTag .code = CODE_REQUEST ;
262
262
dimensions .pWidth = * width ;
263
263
dimensions .pHeight = * height ;
264
-
264
+
265
265
dimensions .vTag .tagId = TAG_SET_VIRTUAL_WIDTH_HEIGHT ;
266
266
dimensions .vTag .bufSize = 8 ; // 4 bytes each width and height
267
267
dimensions .vTag .code = CODE_REQUEST ;
268
268
dimensions .vWidth = * width ;
269
269
dimensions .vHeight = * height ;
270
-
270
+
271
271
dimensions .dTag .tagId = TAG_SET_BUFFER_DEPTH ;
272
272
dimensions .dTag .bufSize = 4 ; // 4 bytes depth
273
273
dimensions .dTag .code = CODE_REQUEST ;
0 commit comments